mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(reverse-proxy): ♻ rm commented archival-api config
This commit is contained in:
parent
9428361906
commit
1fdcb2ab13
2 changed files with 1 additions and 25 deletions
|
|
@ -1,18 +1,6 @@
|
|||
server {
|
||||
listen 80 default_server;
|
||||
|
||||
# location ^~ /api/archival/ {
|
||||
# rewrite ^/api/archival/(.*)$ /$1 break;
|
||||
# proxy_pass http://archival-api:80;
|
||||
# proxy_http_version 1.1;
|
||||
# proxy_set_header Upgrade $http_upgrade;
|
||||
# proxy_set_header Connection keep-alive;
|
||||
# proxy_set_header Host $host;
|
||||
# proxy_cache_bypass $http_upgrade;
|
||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||
# }
|
||||
|
||||
location ^~ /api/ {
|
||||
rewrite ^/api/(.*)$ /$1 break;
|
||||
proxy_pass http://directory-api:80;
|
||||
|
|
@ -24,4 +12,4 @@ server {
|
|||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -8,18 +8,6 @@ server {
|
|||
ssl_certificate_key /etc/nginx/cert/filterlists_key.pem;
|
||||
|
||||
add_header Content-Security-Policy "default-src 'none'; connect-src 'self'; img-src 'self' data:; manifest-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';" always;
|
||||
|
||||
# location ^~ /api/archival/ {
|
||||
# rewrite ^/api/archival/(.*)$ /$1 break;
|
||||
# proxy_pass http://archival-api:80;
|
||||
# proxy_http_version 1.1;
|
||||
# proxy_set_header Upgrade $http_upgrade;
|
||||
# proxy_set_header Connection keep-alive;
|
||||
# proxy_set_header Host $host;
|
||||
# proxy_cache_bypass $http_upgrade;
|
||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||
# }
|
||||
|
||||
location ^~ /api/ {
|
||||
rewrite ^/api/(.*)$ /$1 break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue