Quetre caching
This commit is contained in:
parent
59ad40f98f
commit
79b745248c
|
@ -4,14 +4,14 @@ add_header X-I2P-Location http://vernfy3k7royqfe7pg6wgzj53ipltd5nb4acjtjmwgpqrkx
|
||||||
subs_filter "hd.vern.cc" "$host";
|
subs_filter "hd.vern.cc" "$host";
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:5007;
|
proxy_pass http://127.0.0.1:3001;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /socket.io/ {
|
location /socket.io/ {
|
||||||
proxy_pass http://127.0.0.1:5007;
|
proxy_pass http://127.0.0.1:3001;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
|
@ -4,11 +4,13 @@ add_header X-I2P-Location http://vernnflenvsqccuanaun7yydnmturi4jkyxlyzhn6ultpje
|
||||||
access_log /var/log/nginx/quetre-access.log;
|
access_log /var/log/nginx/quetre-access.log;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://10.0.3.57:5068/;
|
# proxy_pass http://10.0.3.57:5068/;
|
||||||
|
proxy_pass http://crescent.vern.cc:5068/;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_cache quetre;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($http_user_agent = "Mozilla/5.0 (compatible; Farside/0.1.0; +https://farside.link)") {
|
if ($http_user_agent = "Mozilla/5.0 (compatible; Farside/0.1.0; +https://farside.link)") {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
proxy_cache_path /tmp/cache keys_zone=quetre:10m inactive=60m;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
|
Loading…
Reference in New Issue