diff --git a/samples/server-https.conf b/samples/server-https.conf new file mode 100644 index 0000000..e64be3d --- /dev/null +++ b/samples/server-https.conf @@ -0,0 +1,7 @@ +# If you edit this file, remember to run ./launcher rebuild +[server] +server.hostname = seafile.example.com +server.https = true +admin.email = me@example.com +admin.password = asecret +server.port_mappings = 80:80,443:443 \ No newline at end of file diff --git a/samples/server.conf b/samples/server.conf index e64be3d..306a1d8 100644 --- a/samples/server.conf +++ b/samples/server.conf @@ -1,7 +1,6 @@ # If you edit this file, remember to run ./launcher rebuild [server] server.hostname = seafile.example.com -server.https = true admin.email = me@example.com admin.password = asecret -server.port_mappings = 80:80,443:443 \ No newline at end of file +server.port_mappings = 8080:80 \ No newline at end of file diff --git a/scripts/ssl.sh b/scripts/ssl.sh index b4fdc67..931219a 100755 --- a/scripts/ssl.sh +++ b/scripts/ssl.sh @@ -42,3 +42,5 @@ curl -sSL -o intermediate.pem https://letsencrypt.org/certs/lets-encrypt-x3-cros cat signed.crt intermediate.pem > ${ssl_crt} nginx -s reload + +echo "Nginx reloaded." diff --git a/templates/letsencrypt.cron.template b/templates/letsencrypt.cron.template index 3f53864..cd877b6 100644 --- a/templates/letsencrypt.cron.template +++ b/templates/letsencrypt.cron.template @@ -1,3 +1,3 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -# m h dom mon dow command +# min hour dayofmonth month dayofweek command 0 0 1 * * root /scripts/ssl.sh {{ ssl_dir }} {{ domain }}