From 76f0a8c34cc7bf03185189e1e90c02a4a9a6f3b4 Mon Sep 17 00:00:00 2001 From: Roxedus Date: Wed, 30 Dec 2020 22:58:59 +0100 Subject: [PATCH] Added helpers Replaced index.html with page with some info, including a the swag documentation. Added http502 helper page, also linking to our docs. UI suggestions welcome --- readme-vars.yml | 1 + root/defaults/502.html | 44 ++++++++++++++++++++++++++++++++++ root/defaults/default | 2 ++ root/defaults/index.html | 39 ++++++++++++++++++++++++++++++ root/etc/cont-init.d/50-config | 2 ++ 5 files changed, 88 insertions(+) create mode 100644 root/defaults/502.html create mode 100644 root/defaults/index.html diff --git a/readme-vars.yml b/readme-vars.yml index cfcdcef..d86b110 100755 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -150,6 +150,7 @@ app_setup_nginx_reverse_proxy_block: "" # changelog changelogs: + - { date: "30.12.20:", desc: "Add helper pages to aid troubleshooting" } - { date: "10.12.20:", desc: "Add support for njalla dns validation" } - { date: "09.12.20:", desc: "Check for template/conf updates and notify in the log. Add support for gehirn and sakuracloud dns validation." } - { date: "01.11.20:", desc: "Add support for netcup dns validation" } diff --git a/root/defaults/502.html b/root/defaults/502.html new file mode 100644 index 0000000..a7e290f --- /dev/null +++ b/root/defaults/502.html @@ -0,0 +1,44 @@ + + + 502 + + + +
+

502

+

Nginx can not connect to the application

+

Some common reasons are listed here: docs.linuxserver.io

+

For help and support, please visit: inuxserver.io/support

+
+ + \ No newline at end of file diff --git a/root/defaults/default b/root/defaults/default index c4b27ae..5dea1c1 100644 --- a/root/defaults/default +++ b/root/defaults/default @@ -1,5 +1,7 @@ ## Version 2020/05/23 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/default +error_page 502 /502.html; + # redirect all traffic to https server { listen 80 default_server; diff --git a/root/defaults/index.html b/root/defaults/index.html new file mode 100644 index 0000000..8244bef --- /dev/null +++ b/root/defaults/index.html @@ -0,0 +1,39 @@ + + + Welcome to your SWAG instance + + + +
+

Welcome to your SWAG instance

+

A webserver and reverse proxy solution brought to you by linuxserver.io with php support and a built-in Certbot client.

+

We have a article on how to use swag here: docs.linuxserver.io

+

For help and support, please visit: inuxserver.io/support

+
+ + \ No newline at end of file diff --git a/root/etc/cont-init.d/50-config b/root/etc/cont-init.d/50-config index 11bb247..2ec9d4f 100644 --- a/root/etc/cont-init.d/50-config +++ b/root/etc/cont-init.d/50-config @@ -77,6 +77,8 @@ cp /config/fail2ban/jail.local /etc/fail2ban/jail.local cp /defaults/authelia-location.conf /config/nginx/authelia-location.conf [[ ! -f /config/nginx/geoip2.conf ]] && \ cp /defaults/geoip2.conf /config/nginx/geoip2.conf +[[ ! -f /config/www/502.html ]] && + cp /defaults/502.html /config/www/502.html # copy pre-generated dhparams or generate if needed [[ ! -f /config/nginx/dhparams.pem ]] && \