mirror of
				https://github.com/linuxserver/docker-swag.git
				synced 2025-10-31 21:17:42 +09:00 
			
		
		
		
	| @@ -150,6 +150,7 @@ app_setup_nginx_reverse_proxy_block: "" | ||||
|  | ||||
| # changelog | ||||
| changelogs: | ||||
|   - { date: "03.01.21:", 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" } | ||||
|   | ||||
							
								
								
									
										44
									
								
								root/defaults/502.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								root/defaults/502.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,44 @@ | ||||
| <html> | ||||
|     <head> | ||||
|         <title>502</title> | ||||
|         <style> | ||||
|         body{ | ||||
|             font-family: Helvetica, Arial, sans-serif; | ||||
|             background-color: #961313; | ||||
|         } | ||||
|         .message{ | ||||
|             width:440px; | ||||
|             padding:20px 40px; | ||||
|             margin:0 auto; | ||||
|             background-color:#f9f9f9; | ||||
|             border:1px solid #ddd; | ||||
|             color: #1e3d62; | ||||
|         } | ||||
|         center{ | ||||
|             margin:40px 0; | ||||
|         } | ||||
|         h1{ | ||||
|             font-size: 28px; | ||||
|             line-height: 26px; | ||||
|         } | ||||
|         h2{ | ||||
|             font-size: 18px; | ||||
|             line-height: 26px; | ||||
|         } | ||||
|         p{ | ||||
|             font-size: 12px; | ||||
|         } | ||||
|         a{ | ||||
|             color: rgb(207, 48, 139); | ||||
|         } | ||||
|         </style> | ||||
|     </head> | ||||
|     <body> | ||||
|         <div class="message"> | ||||
|             <h1>502</h1> | ||||
|             <h2>Nginx can not connect to the application</h2> | ||||
|             <p>Some common reasons are listed here: <a target="_blank" href="https://docs.linuxserver.io/general/swag#502">docs.linuxserver.io</a></p> | ||||
|             <p>For help and support, please visit: <a target="_blank" href="https://www.linuxserver.io/support">linuxserver.io/support</a></p> | ||||
|         </div> | ||||
|     </body> | ||||
| </html> | ||||
| @@ -1,4 +1,6 @@ | ||||
| ## Version 2020/05/23 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/default | ||||
| ## Version 2021/01/03 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/default | ||||
|  | ||||
| error_page 502 /502.html; | ||||
|  | ||||
| # redirect all traffic to https | ||||
| server { | ||||
|   | ||||
							
								
								
									
										39
									
								
								root/defaults/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								root/defaults/index.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| <html> | ||||
|     <head> | ||||
|         <title>Welcome to your SWAG instance</title> | ||||
|         <style> | ||||
|         body{ | ||||
|             font-family: Helvetica, Arial, sans-serif; | ||||
|         } | ||||
|         .message{ | ||||
|             width:440px; | ||||
|             padding:20px 40px; | ||||
|             margin:0 auto; | ||||
|             background-color:#f9f9f9; | ||||
|             border:1px solid #ddd; | ||||
|             color: #1e3d62; | ||||
|         } | ||||
|         center{ | ||||
|             margin:40px 0; | ||||
|         } | ||||
|         h1{ | ||||
|             font-size: 18px; | ||||
|             line-height: 26px; | ||||
|         } | ||||
|         p{ | ||||
|             font-size: 12px; | ||||
|         } | ||||
|         a{ | ||||
|             color: rgb(207, 48, 139); | ||||
|         } | ||||
|         </style> | ||||
|     </head> | ||||
|     <body> | ||||
|         <div class="message"> | ||||
|             <h1>Welcome to your <a target="_blank" href="https://github.com/linuxserver/docker-swag">SWAG</a> instance</h1> | ||||
|             <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> | ||||
|             <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> | ||||
|             <p>For help and support, please visit: <a target="_blank" href="https://www.linuxserver.io/support">linuxserver.io/support</a></p> | ||||
|         </div> | ||||
|     </body> | ||||
| </html> | ||||
| @@ -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 ]] && \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user