mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-06-05 21:59:36 +02:00
Auto-Backup $'Mon Mar 24 2025 00:31:42 GMT+0100 (Central European Standard Time)'
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
26
Server/Root/etc/nginx/sites-available/test.octt.eu.org.conf
Normal file
26
Server/Root/etc/nginx/sites-available/test.octt.eu.org.conf
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user