current config

This commit is contained in:
kleines Filmröllchen 2025-01-22 14:17:16 +01:00
parent 14347cab42
commit 8c710546af
Signed by: filmroellchen
SSH key fingerprint: SHA256:UMhcHaeI+VGsiUL2Drpw3aj1iRiQUlx8nxZqUPvoaVw
10 changed files with 639 additions and 1 deletions

View file

@ -0,0 +1,40 @@
# Public Chaostreff MediaWiki
server {
listen 81;
listen [::]:81;
root /var/lib/orga_mediawiki;
charset utf-8;
client_max_body_size 100m;
client_body_timeout 60;
index index.php index.html index.htm;
location ~ \.ht {
deny all;
}
location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php;
}
location ^~ /maintenance/ {
return 403;
}
# Restrictions based on the .htaccess files
location ~ ^/(cache|includes|maintenance|languages|serialized|tests|images/deleted)/ {
deny all;
}
location ~ \.php$ {
include /etc/nginx/fastcgi.conf;
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_index index.php;
try_files $uri @rewrite;
}
}