This commit is contained in:
root 2022-12-21 11:20:28 +00:00
parent 42c5e9cfd5
commit c78f0ac93b
17 changed files with 35 additions and 20 deletions

View File

@ -9,7 +9,7 @@ location / {
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/snippets/fastcgi.conf;

View File

@ -9,7 +9,7 @@ error_log /var/log/nginx/rss.error.log;
# php files handling
# this regex is mandatory because of the API
location ~ ^.+?\.php(/.*)?$ {
fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
# By default, the variable PATH_INFO is not set under PHP-FPM
# But FreshRSS API greader.php need it. If you have a “Bad Request” error, double check this var!

View File

@ -9,7 +9,7 @@ location / {
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/snippets/fastcgi.conf;

View File

@ -7,6 +7,5 @@ location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache mycache;
}

View File

@ -0,0 +1,13 @@
add_header Onion-Location http://hpp.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernohu6dvnvssx5rnyckb2vulvczx2z5lneiz6xa5rw262zru2q.b32.i2p$request_uri;
access_log off;
error_log /var/log/nginx/error.log crit;
location / {
proxy_pass http://10.0.3.57:1520/;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host; # so Invidious knows domain
proxy_http_version 1.1; # to keep alive
proxy_set_header Connection ""; # to keep alive
}

View File

@ -11,7 +11,7 @@ location / {
}
location ~ \.php$ {
fastcgi_pass 192.168.122.53:9005;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/snippets/fastcgi.conf;

View File

@ -17,7 +17,7 @@ location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include snippets/fastcgi.conf;
}

View File

@ -111,7 +111,7 @@ location ~ \.php(?:$|/) {
fastcgi_param modHeadersAvailable true; # Avoid sending the security headers twice
fastcgi_param front_controller_active true; # Enable pretty urls
fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_intercept_errors on;
fastcgi_request_buffering off;

View File

@ -9,7 +9,7 @@ location / {
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/snippets/fastcgi.conf;

View File

@ -4,12 +4,11 @@ add_header X-I2P-Location http://vernnflenvsqccuanaun7yydnmturi4jkyxlyzhn6ultpje
access_log /var/log/nginx/quetre-access.log;
location / {
proxy_pass http://192.168.122.53:5002/;
proxy_pass http://10.0.3.57:5068/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache mycache;
}
if ($http_user_agent = "Mozilla/5.0 (compatible; Farside/0.1.0; +https://farside.link)") {

View File

@ -15,7 +15,7 @@ location ~ \.php(?:$|/) {
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on;
fastcgi_param modHeadersAvailable true;
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_intercept_errors on;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;

View File

@ -9,7 +9,7 @@ location / {
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/snippets/fastcgi.conf;

View File

@ -20,7 +20,7 @@ location ~ \.php$ {
try_files $uri /$lang$uri /en$uri =404;
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
include snippets/fastcgi.conf;
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
}
@ -159,6 +159,7 @@ location ~ ^/(~|u/)(?<user>[\w-]+)(?<user_uri>/.*)?$ {
autoindex_exact_size off;
subs_filter_types text/html text/css text/xml application/javascript text/plain;
subs_filter (((file|virtual|src|href)=|url\()["']?)/([^/]) $1/u/$user/$4 r;
subs_filter "gcdn.vern.cc" "vernlb7gwnsycyt6fw67ak4qx2nn6vimfjxv6xbuwasmb4j6ivva.b32.i2p";
location ~ \.php$ {
fastcgi_pass 192.168.122.30:9000;

View File

@ -2,7 +2,7 @@ add_header Onion-Location http://wg.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajh
add_header X-I2P-Location http://verneks7rfjptpz5fpii7n7nrxilsidi2qxepeuuf66c3tsf4nhq.b32.i2p$request_uri;
location / {
proxy_pass http://192.168.122.53:5001/;
proxy_pass http://10.0.3.57:5015/;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host; # so Whoogle knows domain
proxy_http_version 1.1; # to keep alive

View File

@ -153,23 +153,27 @@ server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
include snippets/lets-encrypt.conf;
return 200 127.0.0.1;
default_type text/plain;
return 200 "$remote_addr\n";
}
server {
server_name myip.vern.cc;
listen 80;
listen [::]:80;
return 200 127.0.0.1;
default_type text/plain;
return 200 "$remote_addr\n";
}
server {
server_name myip.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
listen 80;
listen [::]:80;
return 200 127.0.0.1;
default_type text/plain;
return 200 "$remote_addr\n";
}
server {
server_name vernamluei326jvvjdrdcsi5hcbgiig7anytm3xe3c6lj5jvgmba.b32.i2p;
listen 11064;
listen [::]:11064;
return 200 127.0.0.1;
default_type text/plain;
return 200 "$remote_addr\n";
}

View File

@ -1,5 +1,5 @@
upstream php-handler {
server unix:/var/run/php/php8.0-fpm.sock;
server unix:/var/run/php/php8.1-fpm.sock;
}
# Set the `immutable` cache control options only for assets with a cache busting `v` argument

View File

@ -1,4 +1,3 @@
proxy_cache_path /tmp/cache keys_zone=mycache:10m inactive=60m;
server {
listen 80;
listen [::]:80;