Binding to HTTP and HTTPS simultaneously

asked 2011-04-15 06:43:43 -0600

james-broberg gravatar image

Is it possible for Swift to listen on two ports simultaneously?

For instance, I'd like Swift to use SSL and run on port 443, causing all interactions with Swift users (create, read, update, delete) to occur over SSL.

However it would also be handy for Swift to simultaneously listen/serve on port 80 via plain HTTP, for instance to allow consumption of public containers and content. Is this feasible now or in the future?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2011-04-15 09:51:13 -0600

redbo gravatar image

It would be handy! But Swift doesn't do it yet.

This might be a good idea to get on the roadmap for the next release while we're in that mode.

edit flag offensive delete link more

answered 2011-04-15 12:52:37 -0600

gholt gravatar image

There isn't much in the codebase to keep someone from doing this, but it would need a little bit of work to make it nice.

I just copied my /etc/swift/proxy-server.conf to /etc/swift/proxy-server-2.conf, changed the port and other options in the new conf, and started it up directly with:

swift-proxy-server /etc/swift/proxy-server-2.conf &

That works but obviously there is no init.d script for it and no pid file.

I wouldn't think it'd be too hard for someone to patch that kind of support in.

edit flag offensive delete link more

answered 2011-04-17 05:08:02 -0600

james-broberg gravatar image

Ok - I am glad there is some interest here and it is feasible. Regrettably my python skills are non existent, so what is the best way to get this in front of a developer that might be interested in implementing it? Blueprint or file a bug?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-04-15 06:43:43 -0600

Seen: 80 times

Last updated: Apr 17 '11