2021-09-28 11:15:34 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
server_name localhost;
|
|
|
|
|
2021-09-28 12:24:54 +00:00
|
|
|
root /usr/share/nginx/html;
|
|
|
|
index index.html index.htm;
|
|
|
|
|
|
|
|
# Set no-cache for the index.html only so that browsers always check for a new copy of Element Web.
|
|
|
|
location = /index.html {
|
2021-09-28 11:15:34 +00:00
|
|
|
add_header Cache-Control "no-cache";
|
|
|
|
}
|
|
|
|
|
|
|
|
# redirect server error pages to the static page /50x.html
|
|
|
|
#
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
}
|
|
|
|
|