Docker / Docker Buildx (push) Has been cancelled
Build Debian package / Build package (release) Has been cancelled
Build and Deploy / prepare (release) Has been cancelled
Deploy release / Deploy to Cloudflare Pages (release) Has been cancelled
Build and Deploy / Trigger Pro pipeline (release) Has been cancelled
Build and Deploy / Windows arm64 (release) Has been cancelled
Build and Deploy / Windows x64 (release) Has been cancelled
Build and Deploy / macOS (release) Has been cancelled
Build and Deploy / Linux amd64 (sqlcipher static) (release) Has been cancelled
Build and Deploy / Linux arm64 (sqlcipher static) (release) Has been cancelled
Build and Deploy / ${{ needs.prepare.outputs.deploy == 'true' && 'Deploy' || 'Deploy (dry-run)' }} (release) Has been cancelled
Build and Deploy / Deploy builds to ESS (release) Has been cancelled
36 lines
974 B
Plaintext
36 lines
974 B
Plaintext
server {
|
|
listen ${ELEMENT_WEB_PORT};
|
|
listen [::]:${ELEMENT_WEB_PORT};
|
|
server_name localhost;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Set no-cache for the version, config, i18n, 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
|
|
|
|
location = /index.html {
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
location = /version {
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
location /i18n/ {
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
|
|
# covers config.json and config.hostname.json requests as it is prefix.
|
|
location /config {
|
|
root /tmp/element-web-config;
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
location /modules {
|
|
alias /modules;
|
|
}
|
|
# redirect server error pages to the static page /50x.html
|
|
#
|
|
error_page 500 502 503 504 /50x.html;
|
|
}
|
|
|