http server port could be a default variable in .ini files

Bug #814537 reported by Adrien Saladin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sloecode
Fix Released
Undecided
Unassigned

Bug Description

Hi,

Even in production mode I tend to prefer running paster server as a normal user on an unprivileged port (say 8000) and to use a nginx reverse proxy (eventually on a different host) for serving port 80.

In this case, the default production.ini file has issues concerning xmlrpc endpoint because changes in http server port are not propagated to the smart server configuration. It leads to obscure (for me) error messages during bzr authentication with the twisted server.

I think setting a "http_server_port = 8000" in [default] and then using this variable could solve this problem.

Here are the proposed modification in .ini file:

[DEFAULT]

http_server_port = 8000 #or whatever

[server:main]

port = %(http_server_port)s

# Configuration for twistd smart server:
[smartserver]

xmlrpc_auth_endpoint = http://localhost:%(http_server_port)s/xmlrpc

Adrien

Related branches

Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

I agree. This was an oversight. I'll fix it for the next stable release.

Changed in sloecode:
status: New → Confirmed
assignee: nobody → Thomi Richards (thomir)
Changed in sloecode:
milestone: none → 1.1
Changed in sloecode:
status: Confirmed → Fix Committed
Changed in sloecode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.