247 lines
5.6 KiB
Plaintext
247 lines
5.6 KiB
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name binary-kitchen.de www.binary-kitchen.de binary-kitchen.com www.binary-kitchen.com binary-kitchen.net www.binary-kitchen.net binary.kitchen www.binary.kitchen;
|
|
|
|
location /.well-known/acme-challenge {
|
|
default_type "text/plain";
|
|
alias /var/www/acme-challenge;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://www.binary-kitchen.de$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name binary-kitchen.de binary.kitchen www.binary.kitchen;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/www.binary-kitchen.de.key;
|
|
ssl_certificate /etc/nginx/ssl/www.binary-kitchen.de.crt;
|
|
|
|
location / {
|
|
return 301 https://www.binary-kitchen.de$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name www.binary-kitchen.de;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/www.binary-kitchen.de.key;
|
|
ssl_certificate /etc/nginx/ssl/www.binary-kitchen.de.crt;
|
|
|
|
root /var/www/kitchen;
|
|
|
|
client_max_body_size 32M;
|
|
|
|
index index.php;
|
|
|
|
location = / {
|
|
return 301 https://www.binary-kitchen.de/wiki/;
|
|
}
|
|
|
|
location /owncloud {
|
|
rewrite ^/owncloud(/.*)$ https://oc.binary-kitchen.de$1;
|
|
}
|
|
|
|
location /wiki {
|
|
try_files $uri $uri/ @dokuwiki;
|
|
}
|
|
|
|
location ~ /wiki/(data/|conf/|bin/|inc/|install.php) {
|
|
deny all;
|
|
}
|
|
|
|
location ~ ^/wiki/lib.*\.(gif|png|ico|jpg)$ {
|
|
expires 31d;
|
|
}
|
|
|
|
location /static {
|
|
autoindex on;
|
|
}
|
|
|
|
location @dokuwiki {
|
|
rewrite ^/wiki/_media/(.*) /wiki/lib/exe/fetch.php?media=$1 last;
|
|
rewrite ^/wiki/_detail/(.*) /wiki/lib/exe/detail.php?media=$1 last;
|
|
rewrite ^/wiki/_export/([^/]+)/(.*) /wiki/doku.php?do=export_$1&id=$2 last;
|
|
rewrite ^/wiki/tag/(.*) /wiki/doku.php?id=tag:$1&do=showtag&tag=tag:$1 last;
|
|
rewrite ^/wiki/(.*) /wiki/doku.php?id=$1&$args last;
|
|
}
|
|
|
|
location ~ ^/fpmstatus-spaceapi {
|
|
auth_basic "Admin";
|
|
auth_basic_user_file /etc/nginx/fpm_status.htaccess;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_pass unix:/var/run/php/php8.2-fpm-spaceapi-status.sock;
|
|
fastcgi_intercept_errors on;
|
|
fastcgi_read_timeout 10s;
|
|
}
|
|
|
|
location ~ ^/fpmstatus-www {
|
|
auth_basic "Admin";
|
|
auth_basic_user_file /etc/nginx/fpm_status.htaccess;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_pass unix:/var/run/php/php8.2-fpm-www-status.sock;
|
|
fastcgi_intercept_errors on;
|
|
fastcgi_read_timeout 10s;
|
|
}
|
|
|
|
location ~ ^/spaceapi.php {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_pass unix:/var/run/php/php8.2-fpm-spaceapi.sock;
|
|
fastcgi_intercept_errors on;
|
|
fastcgi_read_timeout 10s;
|
|
}
|
|
|
|
location ~ \.php(?:$|/) {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_pass unix:/var/run/php/php8.2-fpm-www.sock;
|
|
fastcgi_intercept_errors on;
|
|
# fastcgi_read_timeout intentionally not reduced, since Wiki etc. might perform long-running operations (file uploads etc.)
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name autoconfig.binary-kitchen.de;
|
|
|
|
location /.well-known/acme-challenge {
|
|
default_type "text/plain";
|
|
alias /var/www/acme-challenge;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://autoconfig.binary-kitchen.de$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name autoconfig.binary-kitchen.de;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/autoconfig.binary-kitchen.de.key;
|
|
ssl_certificate /etc/nginx/ssl/autoconfig.binary-kitchen.de.crt;
|
|
|
|
root /var/www/autoconfig;
|
|
|
|
default_type text/html;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name ccc-r.de www.ccc-r.de ccc-regensburg.de www.ccc-regensburg.de;
|
|
|
|
location /.well-known/acme-challenge {
|
|
default_type "text/plain";
|
|
alias /var/www/acme-challenge;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://www.ccc-r.de$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name www.ccc-r.de;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/www.ccc-r.de.key;
|
|
ssl_certificate /etc/nginx/ssl/www.ccc-r.de.crt;
|
|
|
|
root /var/www/ccc-r;
|
|
|
|
default_type text/html;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name fahrplan.eh21.easterhegg.eu;
|
|
|
|
location /.well-known/acme-challenge {
|
|
default_type "text/plain";
|
|
alias /var/www/acme-challenge;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://fahrplan.eh21.easterhegg.eu$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name fahrplan.eh21.easterhegg.eu;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/fahrplan.eh21.easterhegg.eu.key;
|
|
ssl_certificate /etc/nginx/ssl/fahrplan.eh21.easterhegg.eu.crt;
|
|
|
|
root /var/www/eh21-fahrplan;
|
|
|
|
location = / {
|
|
return 301 https://fahrplan.eh21.easterhegg.eu/eh/;
|
|
}
|
|
|
|
default_type text/html;
|
|
}
|
|
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name makerspace-regensburg.de www.makerspace-regensburg.de;
|
|
|
|
location /.well-known/acme-challenge {
|
|
default_type "text/plain";
|
|
alias /var/www/acme-challenge;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://www.makerspace-regensburg.de$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name www.makerspace-regensburg.de;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/www.makerspace-regensburg.de.key;
|
|
ssl_certificate /etc/nginx/ssl/www.makerspace-regensburg.de.crt;
|
|
|
|
root /var/www/makerspace-regensburg;
|
|
|
|
default_type text/html;
|
|
}
|