Quetre caching

This commit is contained in:
root 2023-01-02 03:27:18 +00:00
parent 59ad40f98f
commit 79b745248c
3 changed files with 7 additions and 3 deletions

View File

@ -4,14 +4,14 @@ add_header X-I2P-Location http://vernfy3k7royqfe7pg6wgzj53ipltd5nb4acjtjmwgpqrkx
subs_filter "hd.vern.cc" "$host";
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 X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
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 X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

View File

@ -4,11 +4,13 @@ add_header X-I2P-Location http://vernnflenvsqccuanaun7yydnmturi4jkyxlyzhn6ultpje
access_log /var/log/nginx/quetre-access.log;
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_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
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)") {

View File

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