Auto-Backup $'Mon Mar 24 2025 00:31:42 GMT+0100 (Central European Standard Time)'

This commit is contained in:
2025-03-24 01:09:49 +01:00
parent b8b72f1027
commit 240e43803c
6 changed files with 50 additions and 6 deletions

View File

@@ -107,6 +107,20 @@ server {
}
}
location ~ ^/new/api/v3/posts/.+/diffs/.+$ {
#limit_except GET POST PUT HEAD OPTIONS {
# deny all;
#}
if ($request_method = DELETE) {
return 405;
}
proxy_pass http://localhost:4567;
}
location /search/ {
return 301 $scheme://$host/new/$request_uri;
}
location /user/ {
rewrite ^ $scheme://$host/new/$request_uri redirect;
}

View File

@@ -32,10 +32,10 @@ server {
proxy_pass http://127.0.0.1/MemosViewer.php?structure=original&uid=;
proxy_set_header Host hlb0.octt.eu.org;
}
location ~ ^/memos.api.v1.MemoService/(CreateMemo|UpdateMemo)$ {
proxy_pass $proxy_pass_backend;
proxy_set_header Host hlb0.octt.eu.org;
}
#location ~ ^/memos.api.v1.MemoService/(CreateMemo|UpdateMemo)$ {
# proxy_pass $proxy_pass_backend;
# proxy_set_header Host hlb0.octt.eu.org;
#}
location /assets/index-CupmbTt3.js {
return 301 $scheme://hlb0.octt.eu.org/Res/Memos/fix-2024-06-03/index-01f381cb-D3gN5Bpo.js;
}

View File

@@ -0,0 +1,26 @@
server {
listen 80;
index index.php index.html;
server_name test.octt.eu.org;
root /Main/Server/www/test;
default_type text/plain;
add_header X-Content-Type-Options nosniff;
rewrite ^/(content|site|kirby)/(.*)$ /error last;
rewrite ^/\.(?!well-known/) /error last;
rewrite ^/(?!app\.webmanifest)[^/]+$ /index.php last;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~* \.php$ {
try_files $uri =404;
fastcgi_pass php;
include fastcgi.conf;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SERVER_PORT 80;
}
}