feat: Change default to https.

Unclear whether this should be the case for werc in general
(probably not)

But it will be the case for my werc websites going on.
This commit is contained in:
NunoSempere 2022-03-10 23:00:29 +00:00
parent 01e571a21b
commit 18893f3192

View File

@ -1,4 +1,4 @@
#!/bin/rc #!/usr/lib/plan9/bin/rc
. ./cgilib.rc . ./cgilib.rc
. ./werclib.rc . ./werclib.rc
. ./wercconf.rc . ./wercconf.rc
@ -34,10 +34,10 @@ for(a in $werc_apps)
fn werc_exec_request { fn werc_exec_request {
site=$SERVER_NAME site=$SERVER_NAME
base_url=http://$site base_url=https://$site
# base_url=http://$site:$SERVER_PORT # base_url=https://$site:$SERVER_PORT
# ^ causes malformed rss to be generated # ^ causes malformed rss to be generated
# could be useful for debugging, but # could be useful for debugging, but
# otherwise not worth it # otherwise not worth it
sitedir=$sitesdir/$site sitedir=$sitesdir/$site
headers=`{get_lib_file headers.tpl} headers=`{get_lib_file headers.tpl}