nginx-configs/common/riot.conf

27 lines
706 B
Plaintext

add_header Onion-Location http://riot.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernltmkmwexhk77dlxmqlet3djveje7gcq7lwy3l5gkemxysy5q.b32.i2p$request_uri;
root /var/www/matrix;
index index.html;
ssi on;
location / {
try_files $uri $uri/ =404;
}
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";
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
if ($badagent) {
return 403;
}