fix indentation. again.
This commit is contained in:
parent
752188d49f
commit
5657af4ec0
|
@ -13,7 +13,7 @@ location ~ \.php$ {
|
|||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
location ~ /(data|conf|bin|inc|vendor)/ {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~ /(data|conf|bin|inc|vendor)/ {
|
||||
deny all;
|
||||
}
|
||||
|
|
|
@ -14,32 +14,32 @@ client_max_body_size 20M;
|
|||
location / {
|
||||
# The default ports:
|
||||
# lemmy_ui_port: 1235
|
||||
# lemmy_port: 8536
|
||||
# lemmy_port: 8536
|
||||
|
||||
set $proxpass "http://0.0.0.0:1235";
|
||||
set $proxpass "http://0.0.0.0:1235";
|
||||
if ($http_accept ~ "^application/.*$") {
|
||||
set $proxpass "http://0.0.0.0:8536";
|
||||
}
|
||||
if ($request_method = POST) {
|
||||
set $proxpass "http://0.0.0.0:8536";
|
||||
}
|
||||
proxy_pass $proxpass;
|
||||
set $proxpass "http://0.0.0.0:8536";
|
||||
}
|
||||
if ($request_method = POST) {
|
||||
set $proxpass "http://0.0.0.0:8536";
|
||||
}
|
||||
proxy_pass $proxpass;
|
||||
|
||||
rewrite ^(.+)/+$ $1 permanent;
|
||||
rewrite ^(.+)/+$ $1 permanent;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
# backend
|
||||
location ~ ^/(api|pictrs|feeds|nodeinfo|.well-known) {
|
||||
proxy_pass http://0.0.0.0:8536;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2,21 +2,21 @@ root /var/www/roundcube/;
|
|||
index index.php index.html index.htm;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php;
|
||||
try_files $uri $uri/ /index.php;
|
||||
}
|
||||
|
||||
location ~ \.php(?:$|/) {
|
||||
try_files $uri = 404;
|
||||
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_param HTTPS on;
|
||||
fastcgi_param modHeadersAvailable true;
|
||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_buffers 4 256k;
|
||||
fastcgi_busy_buffers_size 256k;
|
||||
try_files $uri = 404;
|
||||
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_param HTTPS on;
|
||||
fastcgi_param modHeadersAvailable true;
|
||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_buffers 4 256k;
|
||||
fastcgi_busy_buffers_size 256k;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -93,13 +93,13 @@ location /wiki {
|
|||
}
|
||||
|
||||
location /wiki/ikiwiki.cgi {
|
||||
fastcgi_pass unix:/tmp/fcgi.socket;
|
||||
fastcgi_index ikiwiki.cgi;
|
||||
fastcgi_param SCRIPT_FILENAME /home/ikiwiki/public_html/vernwiki/ikiwiki.cgi;
|
||||
fastcgi_param DOCUMENT_ROOT /home/ikiwiki/public_html/vernwiki;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
fastcgi_pass unix:/tmp/fcgi.socket;
|
||||
fastcgi_index ikiwiki.cgi;
|
||||
fastcgi_param SCRIPT_FILENAME /home/ikiwiki/public_html/vernwiki/ikiwiki.cgi;
|
||||
fastcgi_param DOCUMENT_ROOT /home/ikiwiki/public_html/vernwiki;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
|
||||
location ~ ^/(wp-(admin|login\.php|config\.php)|\.env)$ {
|
||||
return 301 http://fsn.icmp.hetzner.com/10GB.bin;
|
||||
return 301 http://fsn.icmp.hetzner.com/10GB.bin;
|
||||
}
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
server {
|
||||
root /home/anarcat/public_html/wiki.reseaulibre.ca/;
|
||||
index index.html index.htm;
|
||||
root /home/anarcat/public_html/wiki.reseaulibre.ca/;
|
||||
index index.html index.htm;
|
||||
|
||||
# Make site accessible from http://localhost/
|
||||
server_name wiki.reseaulibre.ca;
|
||||
# Make site accessible from http://localhost/
|
||||
server_name wiki.reseaulibre.ca;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
location /ikiwiki.cgi {
|
||||
fastcgi_pass unix:/tmp/fcgi.socket;
|
||||
fastcgi_index ikiwiki.cgi;
|
||||
fastcgi_param SCRIPT_FILENAME /home/anarcat/public_html/ikiwiki.cgi;
|
||||
fastcgi_param DOCUMENT_ROOT /home/anarcat/public_html/wiki.reseaulibre.ca;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location /ikiwiki.cgi {
|
||||
fastcgi_pass unix:/tmp/fcgi.socket;
|
||||
fastcgi_index ikiwiki.cgi;
|
||||
fastcgi_param SCRIPT_FILENAME /home/anarcat/public_html/ikiwiki.cgi;
|
||||
fastcgi_param DOCUMENT_ROOT /home/anarcat/public_html/wiki.reseaulibre.ca;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,6 @@ server {
|
|||
ssl_session_tickets on;
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
add_header Strict-Transport-Security "max-age=63072000";
|
||||
add_header Strict-Transport-Security "max-age=63072000";
|
||||
include common/lemmy.conf;
|
||||
}
|
||||
|
|
|
@ -2,31 +2,33 @@ server {
|
|||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name wm.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
|
||||
server_name rc.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion roundcube.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
|
||||
|
||||
include common/roundcube.conf;
|
||||
}
|
||||
|
||||
#server {
|
||||
# listen 11000;
|
||||
# listen [::]:11000;
|
||||
#
|
||||
# server_name vernj47t2vz4qiobsrcaj6eqhaquqe5qsaejga2glol4b2snhcfa.b32.i2p;
|
||||
#
|
||||
# include common/gitea.conf;
|
||||
#}
|
||||
server {
|
||||
listen 11037;
|
||||
listen [::]:11037;
|
||||
|
||||
server_name vernzzwbnjy6ro2zg5rxgo7eylkcyi6zuf4hhvsdbwvvxa3grsxq.b32.i2p;
|
||||
|
||||
include common/roundcube.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name wm.vern.cc;
|
||||
server_name rc.vern.cc roundcube.vern.cc;
|
||||
include snippets/lets-encrypt.conf;
|
||||
include snippets/headers.conf;
|
||||
|
||||
include common/roundcube.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name wm.vern.cc;
|
||||
server_name rc.vern.cc roundcube.vern.cc;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
add_header Access-Control-Allow-Origin *;
|
||||
add_header Access-Control-Allow-Headers *;
|
||||
if ($request_method = OPTIONS ) {
|
||||
return 200;
|
||||
return 200;
|
||||
}
|
||||
proxy_buffering on;
|
||||
proxy_set_header Host $arg_host;
|
||||
|
|
Loading…
Reference in New Issue