Skip to content

Commit 584a134

Browse files
author
Ralf Schlatterbeck
committed
Fix documentation for roundup-server about the 'host' parameter...
...as suggested in issue2550693, fixes the first part of this issue. Make 'localhost' the new default for this parameter, note the upgrading documentation of changed behaviour. We also deprecate the empty host parameter for binding to all interfaces now (still left in for compatibility). Thanks to Toni Mueller for providing the first version of this patch and discussing implementations.
1 parent 10c4069 commit 584a134

File tree

4 files changed

+39
-8
lines changed

4 files changed

+39
-8
lines changed

CHANGES.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ Fixed:
8989
generation. Set this to a higher value on faster systems which want
9090
more security. Thanks to Eli Collins for implementing this (see
9191
issue2550688).
92+
- Fix documentation for roundup-server about the 'host' parameter as
93+
suggested in issue2550693, fixes the first part of this issue. Make
94+
'localhost' the new default for this parameter, note the upgrading
95+
documentation of changed behaviour. We also deprecate the empty host
96+
parameter for binding to all interfaces now (still left in for
97+
compatibility). Thanks to Toni Mueller for providing the first version
98+
of this patch and discussing implementations.
9299

93100
2010-10-08 1.4.16 (r4541)
94101

doc/admin_guide.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The basic configuration file layout is as follows (take from the
7474

7575
[main]
7676
port = 8080
77-
;hostname =
77+
;host =
7878
;user =
7979
;group =
8080
;log_ip = yes
@@ -93,9 +93,13 @@ are as follows:
9393

9494
**port**
9595
Defines the local TCP port to listen for clients on.
96-
**hostname**
97-
Defines the local hostname to listen for clients on. Only required if
98-
"localhost" is not sufficient.
96+
**host**
97+
Defines the hostname or IP number to listen for clients on. Only
98+
required if `localhost` is not sufficient. If left empty (as opposed
99+
to no `host` keyword in the config-file) this will listen to all
100+
network interfaces and is equivalent to an explicit address `0.0.0.0`.
101+
The use of an empty string to listen to all interfaces is deprecated
102+
and will go away in a future version.
99103
**user** and **group**
100104
Defines the Unix user and group to run the server as. Only work if the
101105
server is started as root.

doc/upgrading.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,23 @@ steps.
1616
Migrating from 1.4.x to 1.4.17
1717
==============================
1818

19-
There is a new config-option 'migrate_passwords' in section 'web' to
19+
There is a new config-option `migrate_passwords` in section `web` to
2020
auto-migrate passwords at web-login time to a more secure storage
2121
scheme. Default for the new option is "yes" so if you don't want that
2222
passwords are auto-migrated to a more secure password scheme on user
2323
login, set this to "no" before running your tracker(s) after the
2424
upgrade.
2525

26+
The standalone roundup-server now defaults to listening on localhost (no
27+
longer on all network interfaces). This will not affect you if you're
28+
already using a configuration file for roundup-server. If you are using
29+
an empty setting for the `host` parameter in the config-file you should
30+
explicitly put 0.0.0.0 there as the use of an empty string to specify
31+
listening to all interfaces is deprecated and will go away in a future
32+
version. If you are starting the server without a configuration file
33+
and want to explicitly listen to all network interface, you should
34+
specify the -n option with the address `0.0.0.0`.
35+
2636
Searching now requires either read-permission without a check method, or
2737
you will have to add a "Search" permission for a class or a list of
2838
properties for a class (if you want to allow searching). For the classic

roundup/scripts/roundup_server.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,16 @@ class ServerConfig(configuration.Config):
465465

466466
SETTINGS = (
467467
("main", (
468-
(configuration.Option, "host", "",
468+
(configuration.Option, "host", "localhost",
469469
"Host name of the Roundup web server instance.\n"
470-
"If empty, listen on all network interfaces."),
470+
"If left unconfigured (no 'host' setting) the default\n"
471+
"will be used.\n"
472+
"If empty, listen on all network interfaces.\n"
473+
"If you want to explicitly listen on all\n"
474+
"network interfaces, the address 0.0.0.0 is a more\n"
475+
"explicit way to achieve this, the use of an empty\n"
476+
"string for this purpose is deprecated and will go away\n"
477+
"in a future release."),
471478
(configuration.IntegerNumberOption, "port", DEFAULT_PORT,
472479
"Port to listen on."),
473480
(configuration.NullableFilePathOption, "favicon", "favicon.ico",
@@ -734,7 +741,10 @@ def usage(message=''):
734741
-h print this text and exit
735742
-S create or update configuration file and exit
736743
-C <fname> use configuration file <fname>
737-
-n <name> set the host name of the Roundup web server instance
744+
-n <name> set the host name of the Roundup web server instance,
745+
specifies on which network interfaces to listen for
746+
connections, defaults to localhost, use 0.0.0.0 to bind
747+
to all network interfaces
738748
-p <port> set the port to listen on (default: %(port)s)
739749
-l <fname> log to the file indicated by fname instead of stderr/stdout
740750
-N log client machine names instead of IP addresses (much slower)

0 commit comments

Comments
 (0)