FEATURE: add offline page template (#752)

* FEATURE: add offline page template
This commit is contained in:
Jeff Wong 2023-11-01 22:07:05 -07:00 committed by GitHub
parent 1160cf57bc
commit b009a3cb76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
run:
- replace:
filename: "/etc/nginx/conf.d/discourse.conf"
global: true
from: /server.+{/
to: |
server {
error_page 502 /error_page.html;
location /error_page.html {
root /var/www/discourse-offline-page/html;
internal;
}
- exec:
cmd: git clone https://github.com/discourse/discourse-offline-page.git /var/www/discourse-offline-page
raise_on_fail: false