forked from Fijxu/etc-configs
A more portable aproach
This commit is contained in:
parent
33802c20b7
commit
231c14af9e
5 changed files with 45 additions and 14 deletions
|
@ -1,11 +1,11 @@
|
|||
server {
|
||||
server_name count.ayaya.beauty;
|
||||
server_name count.ayaya.beauty count.nadeko.net;
|
||||
include configs/general.conf;
|
||||
include configs/security.conf;
|
||||
include configs/robotsNone.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:41000/;
|
||||
proxy_pass http://counter;
|
||||
include configs/proxy.conf;
|
||||
}
|
||||
|
||||
|
@ -21,9 +21,17 @@ server {
|
|||
}
|
||||
|
||||
server {
|
||||
set $x "";
|
||||
if ($host = count.ayaya.beauty) {
|
||||
set $x 1;
|
||||
}
|
||||
if ($host = count.nadeko.net) {
|
||||
set $x 1;
|
||||
}
|
||||
if ($x = 1) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
server_name count.ayaya.beauty;
|
||||
server_name count.ayaya.beauty count.nadeko.net;
|
||||
listen 80;
|
||||
return 404;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
server {
|
||||
server_name ri.zzls.xyz;
|
||||
server_name ri.zzls.xyz ri.nadeko.net;
|
||||
include configs/general.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:40001/;
|
||||
proxy_pass http://rimgo;
|
||||
include configs/proxy.conf;
|
||||
}
|
||||
|
||||
|
@ -21,16 +21,23 @@ server {
|
|||
server_name rimgo.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:40001/;
|
||||
proxy_pass http://rimgo;
|
||||
include configs/proxy.conf;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
set $x "";
|
||||
if ($host = ri.zzls.xyz) {
|
||||
set $x 1;
|
||||
}
|
||||
if ($host = ri.nadeko.net) {
|
||||
set $x 1;
|
||||
}
|
||||
if ($x = 1) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
listen 80;
|
||||
server_name ri.zzls.xyz;
|
||||
server_name ri.zzls.xyz ri.nadeko.net;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
server {
|
||||
server_name search.zzls.xyz;
|
||||
server_name search.zzls.xyz search.nadeko.net;
|
||||
#include configs/general.conf;
|
||||
|
||||
location @socket {
|
||||
uwsgi_pass unix:///usr/local/searxng/run/socket;
|
||||
uwsgi_pass searxng;
|
||||
include uwsgi_params;
|
||||
uwsgi_param HTTP_HOST $host;
|
||||
uwsgi_param HTTP_CONNECTION $http_connection;
|
||||
|
@ -43,10 +43,17 @@ server {
|
|||
|
||||
}
|
||||
server {
|
||||
set $x "";
|
||||
if ($host = search.zzls.xyz) {
|
||||
set $x 1;
|
||||
}
|
||||
if ($host = search.nadeko.net) {
|
||||
set $x 1;
|
||||
}
|
||||
if ($x = 1) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
listen 80;
|
||||
server_name search.zzls.xyz;
|
||||
server_name search.zzls.xyz search.nadeko.net;
|
||||
return 404;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
# Disable HTTP/3 for now.
|
||||
|
||||
#add_header Alt-Svc: h2=":443"; ma=2592000;
|
||||
#listen 443 quic;
|
||||
add_header Alt-Svc 'h3=":443"; ma=86400';
|
||||
listen 443 quic;
|
||||
|
|
11
nginx/configs/upstreams.conf
Normal file
11
nginx/configs/upstreams.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
upstream rimgo {
|
||||
server 127.0.0.1:10001;
|
||||
}
|
||||
|
||||
upstream counter {
|
||||
server 127.0.0.1:10002;
|
||||
}
|
||||
|
||||
upstream searxng {
|
||||
server unix:///usr/local/searxng/run/socket;
|
||||
}
|
Loading…
Add table
Reference in a new issue