Ask Your Question
0

Binding to HTTP and HTTPS simultaneously

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

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
0

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

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
0

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

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
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 60 times

Last updated: Apr 17 '11