File tree Expand file tree Collapse file tree 5 files changed +89
-1
lines changed Expand file tree Collapse file tree 5 files changed +89
-1
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ app_setup_nginx_reverse_proxy_block: ""
150150
151151# changelog
152152changelogs :
153+ - { date: "03.01.21:", desc: "Add helper pages to aid troubleshooting" }
153154 - { date: "10.12.20:", desc: "Add support for njalla dns validation" }
154155 - { date: "09.12.20:", desc: "Check for template/conf updates and notify in the log. Add support for gehirn and sakuracloud dns validation." }
155156 - { date: "01.11.20:", desc: "Add support for netcup dns validation" }
Original file line number Diff line number Diff line change 1+ < html >
2+ < head >
3+ < title > 502</ title >
4+ < style >
5+ body {
6+ font-family : Helvetica, Arial, sans-serif;
7+ background-color : # 961313 ;
8+ }
9+ .message {
10+ width : 440px ;
11+ padding : 20px 40px ;
12+ margin : 0 auto;
13+ background-color : # f9f9f9 ;
14+ border : 1px solid # ddd ;
15+ color : # 1e3d62 ;
16+ }
17+ center {
18+ margin : 40px 0 ;
19+ }
20+ h1 {
21+ font-size : 28px ;
22+ line-height : 26px ;
23+ }
24+ h2 {
25+ font-size : 18px ;
26+ line-height : 26px ;
27+ }
28+ p {
29+ font-size : 12px ;
30+ }
31+ a {
32+ color : rgb (207 , 48 , 139 );
33+ }
34+ </ style >
35+ </ head >
36+ < body >
37+ < div class ="message ">
38+ < h1 > 502</ h1 >
39+ < h2 > Nginx can not connect to the application</ h2 >
40+ < p > Some common reasons are listed here: < a target ="_blank " href ="https://docs.linuxserver.io/general/swag#502 "> docs.linuxserver.io</ a > </ p >
41+ < p > For help and support, please visit: < a target ="_blank " href ="https://www.linuxserver.io/support "> linuxserver.io/support</ a > </ p >
42+ </ div >
43+ </ body >
44+ </ html >
Original file line number Diff line number Diff line change 1- ## Version 2020/05/23 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/default
1+ ## Version 2021/01/03 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/default
2+
3+ error_page 502 /502.html;
24
35# redirect all traffic to https
46server {
Original file line number Diff line number Diff line change 1+ < html >
2+ < head >
3+ < title > Welcome to your SWAG instance</ title >
4+ < style >
5+ body {
6+ font-family : Helvetica, Arial, sans-serif;
7+ }
8+ .message {
9+ width : 440px ;
10+ padding : 20px 40px ;
11+ margin : 0 auto;
12+ background-color : # f9f9f9 ;
13+ border : 1px solid # ddd ;
14+ color : # 1e3d62 ;
15+ }
16+ center {
17+ margin : 40px 0 ;
18+ }
19+ h1 {
20+ font-size : 18px ;
21+ line-height : 26px ;
22+ }
23+ p {
24+ font-size : 12px ;
25+ }
26+ a {
27+ color : rgb (207 , 48 , 139 );
28+ }
29+ </ style >
30+ </ head >
31+ < body >
32+ < div class ="message ">
33+ < h1 > Welcome to your < a target ="_blank " href ="https://github.com/linuxserver/docker-swag "> SWAG</ a > instance</ h1 >
34+ < p > A webserver and reverse proxy solution brought to you by < a target ="_blank " href ="https://www.linuxserver.io/ "> linuxserver.io</ a > with php support and a built-in Certbot client.</ p >
35+ < p > We have an article on how to use swag here: < a target ="_blank " href ="https://docs.linuxserver.io/general/swag "> docs.linuxserver.io</ a > </ p >
36+ < p > For help and support, please visit: < a target ="_blank " href ="https://www.linuxserver.io/support "> linuxserver.io/support</ a > </ p >
37+ </ div >
38+ </ body >
39+ </ html >
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ cp /config/fail2ban/jail.local /etc/fail2ban/jail.local
7777 cp /defaults/authelia-location.conf /config/nginx/authelia-location.conf
7878[[ ! -f /config/nginx/geoip2.conf ]] && \
7979 cp /defaults/geoip2.conf /config/nginx/geoip2.conf
80+ [[ ! -f /config/www/502.html ]] &&
81+ cp /defaults/502.html /config/www/502.html
8082
8183# copy pre-generated dhparams or generate if needed
8284[[ ! -f /config/nginx/dhparams.pem ]] && \
You can’t perform that action at this time.
0 commit comments