Fossil SCM

The --nossl option is on by default for the "fossil ui" command.

drh 2019-01-21 18:27 https-all-pages-option
Commit 9ae6f8660d020e124b3155b6f3c0bb3f057b9b8aaf446c44668d398866fd31fb
1 file changed +3 -2
+3 -2
--- src/main.c
+++ src/main.c
@@ -2478,11 +2478,12 @@
24782478
** --https signal a request coming in via https
24792479
** --max-latency N Do not let any single HTTP request run for more than N
24802480
** seconds (only works on unix)
24812481
** --nocompress Do not compress HTTP replies
24822482
** --nojail Drop root privileges but do not enter the chroot jail
2483
-** --nossl signal that no SSL connections are available
2483
+** --nossl signal that no SSL connections are available (Always
2484
+** set by default for the "ui" command)
24842485
** --notfound URL Redirect
24852486
** -P|--port TCPPORT listen to request on port TCPPORT
24862487
** --th-trace trace TH1 execution (for debugging purposes)
24872488
** --repolist If REPOSITORY is dir, URL "/" lists repos.
24882489
** --scgi Accept SCGI rather than HTTP
@@ -2549,11 +2550,11 @@
25492550
fCreate = find_option("create",0,0)!=0;
25502551
if( find_option("scgi", 0, 0)!=0 ) flags |= HTTP_SERVER_SCGI;
25512552
if( zAltBase ){
25522553
set_base_url(zAltBase);
25532554
}
2554
- g.sslNotAvailable = find_option("nossl", 0, 0)!=0;
2555
+ g.sslNotAvailable = find_option("nossl", 0, 0)!=0 || isUiCmd;
25552556
if( find_option("https",0,0)!=0 ){
25562557
cgi_replace_parameter("HTTPS","on");
25572558
}
25582559
if( find_option("localhost", 0, 0)!=0 ){
25592560
flags |= HTTP_SERVER_LOCALHOST;
25602561
--- src/main.c
+++ src/main.c
@@ -2478,11 +2478,12 @@
2478 ** --https signal a request coming in via https
2479 ** --max-latency N Do not let any single HTTP request run for more than N
2480 ** seconds (only works on unix)
2481 ** --nocompress Do not compress HTTP replies
2482 ** --nojail Drop root privileges but do not enter the chroot jail
2483 ** --nossl signal that no SSL connections are available
 
2484 ** --notfound URL Redirect
2485 ** -P|--port TCPPORT listen to request on port TCPPORT
2486 ** --th-trace trace TH1 execution (for debugging purposes)
2487 ** --repolist If REPOSITORY is dir, URL "/" lists repos.
2488 ** --scgi Accept SCGI rather than HTTP
@@ -2549,11 +2550,11 @@
2549 fCreate = find_option("create",0,0)!=0;
2550 if( find_option("scgi", 0, 0)!=0 ) flags |= HTTP_SERVER_SCGI;
2551 if( zAltBase ){
2552 set_base_url(zAltBase);
2553 }
2554 g.sslNotAvailable = find_option("nossl", 0, 0)!=0;
2555 if( find_option("https",0,0)!=0 ){
2556 cgi_replace_parameter("HTTPS","on");
2557 }
2558 if( find_option("localhost", 0, 0)!=0 ){
2559 flags |= HTTP_SERVER_LOCALHOST;
2560
--- src/main.c
+++ src/main.c
@@ -2478,11 +2478,12 @@
2478 ** --https signal a request coming in via https
2479 ** --max-latency N Do not let any single HTTP request run for more than N
2480 ** seconds (only works on unix)
2481 ** --nocompress Do not compress HTTP replies
2482 ** --nojail Drop root privileges but do not enter the chroot jail
2483 ** --nossl signal that no SSL connections are available (Always
2484 ** set by default for the "ui" command)
2485 ** --notfound URL Redirect
2486 ** -P|--port TCPPORT listen to request on port TCPPORT
2487 ** --th-trace trace TH1 execution (for debugging purposes)
2488 ** --repolist If REPOSITORY is dir, URL "/" lists repos.
2489 ** --scgi Accept SCGI rather than HTTP
@@ -2549,11 +2550,11 @@
2550 fCreate = find_option("create",0,0)!=0;
2551 if( find_option("scgi", 0, 0)!=0 ) flags |= HTTP_SERVER_SCGI;
2552 if( zAltBase ){
2553 set_base_url(zAltBase);
2554 }
2555 g.sslNotAvailable = find_option("nossl", 0, 0)!=0 || isUiCmd;
2556 if( find_option("https",0,0)!=0 ){
2557 cgi_replace_parameter("HTTPS","on");
2558 }
2559 if( find_option("localhost", 0, 0)!=0 ){
2560 flags |= HTTP_SERVER_LOCALHOST;
2561

Keyboard Shortcuts

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