add custom 502 error page
This commit is contained in:
@@ -22,8 +22,7 @@ packages:
|
||||
- git
|
||||
- nfs-common
|
||||
- curl
|
||||
- python3-flask
|
||||
- gunicorn
|
||||
- nginx
|
||||
|
||||
write_files:
|
||||
- path: /opt/environment/.env
|
||||
@@ -38,9 +37,18 @@ write_files:
|
||||
permissions: "0755"
|
||||
content: |
|
||||
${traefik-service}
|
||||
|
||||
- path: /usr/share/nginx/error-pages/502.html
|
||||
permissions: "0644"
|
||||
content: |
|
||||
{nginx-error-502}
|
||||
- path: /etc/nginx/sites-available/default
|
||||
permissions: "0644"
|
||||
content: |
|
||||
{nginx-error-configuration}
|
||||
runcmd:
|
||||
- /opt/gateway/install-traefik.sh
|
||||
- ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled
|
||||
- systemctl start nginx.service
|
||||
|
||||
final_message: |
|
||||
Base system ready for ${hostname}
|
||||
Reference in New Issue
Block a user