Element Web #19
|
@ -6,17 +6,6 @@ server {
|
||||||
|
|
||||||
# see https://github.com/vector-im/element-web/blob/develop/nginx/conf.d/default.conf
|
# see https://github.com/vector-im/element-web/blob/develop/nginx/conf.d/default.conf
|
||||||
location / {
|
location / {
|
||||||
location = /index.html {
|
|
||||||
add_header Cache-Control "no-cache";
|
|
||||||
}
|
|
||||||
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";
|
|
||||||
}
|
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
Loading…
Reference in a new issue