2021-09-28 07:15:34 -04:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
server_name localhost;
|
|
|
|
|
2021-09-28 08:24:54 -04:00
|
|
|
root /usr/share/nginx/html;
|
2021-09-29 05:32:12 -04:00
|
|
|
index index.html;
|
2021-09-28 08:24:54 -04:00
|
|
|
|
2022-01-31 09:18:45 -05:00
|
|
|
# Set no-cache for the version, config and index.html
|
|
|
|
# so that browsers always check for a new copy of Element Web.
|
|
|
|
# NB http://your-domain/ and http://your-domain/? are also covered by this
|
|
|
|
|
2021-09-28 08:24:54 -04:00
|
|
|
location = /index.html {
|
2021-09-28 07:15:34 -04:00
|
|
|
add_header Cache-Control "no-cache";
|
|
|
|
}
|
2022-01-31 09:18:45 -05:00
|
|
|
location = /version {
|
|
|
|
add_header Cache-Control "no-cache";
|
|
|
|
}
|
|
|
|
# covers config.json and config.hostname.json requests as it is prefix.
|
|
|
|
location /config {
|
|
|
|
add_header Cache-Control "no-cache";
|
|
|
|
}
|
2021-09-28 07:15:34 -04:00
|
|
|
# redirect server error pages to the static page /50x.html
|
|
|
|
#
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
}
|
|
|
|
|