Fossil SCM

Improvements to the redirect-to-https documentation.

drh 2024-10-21 11:15 trunk
Commit 27891979e10f9ee9d84fe5f22698c3b86aa1fd9c0f383be920e0e278f814c667
1 file changed +6 -2
+6 -2
--- src/db.c
+++ src/db.c
@@ -4842,14 +4842,18 @@
48424842
** environment variable is consulted. If "off", a direct HTTP connection is
48434843
** used.
48444844
*/
48454845
/*
48464846
** SETTING: redirect-to-https default=0 width=2
4847
-** Specifies whether or not to redirect http:// requests to
4848
-** https:// URIs. A value of 0 (the default) means not to
4847
+** Specifies whether or not to redirect unencrypted "http://" requests to
4848
+** encrypted "https://" URIs. A value of 0 (the default) means do not
48494849
** redirect, 1 means to redirect only the /login page, and 2
48504850
** means to always redirect.
4851
+**
4852
+** For security, a value of 2 is recommended. The default value is 0
4853
+** because not all sites are TLS-capable. But you should definitely enable
4854
+** TLS and change this setting to 2 for all public-facing repositories.
48514855
*/
48524856
/*
48534857
** SETTING: relative-paths boolean default=on
48544858
** When showing changes and extras, report paths relative
48554859
** to the current working directory.
48564860
--- src/db.c
+++ src/db.c
@@ -4842,14 +4842,18 @@
4842 ** environment variable is consulted. If "off", a direct HTTP connection is
4843 ** used.
4844 */
4845 /*
4846 ** SETTING: redirect-to-https default=0 width=2
4847 ** Specifies whether or not to redirect http:// requests to
4848 ** https:// URIs. A value of 0 (the default) means not to
4849 ** redirect, 1 means to redirect only the /login page, and 2
4850 ** means to always redirect.
 
 
 
 
4851 */
4852 /*
4853 ** SETTING: relative-paths boolean default=on
4854 ** When showing changes and extras, report paths relative
4855 ** to the current working directory.
4856
--- src/db.c
+++ src/db.c
@@ -4842,14 +4842,18 @@
4842 ** environment variable is consulted. If "off", a direct HTTP connection is
4843 ** used.
4844 */
4845 /*
4846 ** SETTING: redirect-to-https default=0 width=2
4847 ** Specifies whether or not to redirect unencrypted "http://" requests to
4848 ** encrypted "https://" URIs. A value of 0 (the default) means do not
4849 ** redirect, 1 means to redirect only the /login page, and 2
4850 ** means to always redirect.
4851 **
4852 ** For security, a value of 2 is recommended. The default value is 0
4853 ** because not all sites are TLS-capable. But you should definitely enable
4854 ** TLS and change this setting to 2 for all public-facing repositories.
4855 */
4856 /*
4857 ** SETTING: relative-paths boolean default=on
4858 ** When showing changes and extras, report paths relative
4859 ** to the current working directory.
4860

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button