mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix(reverse-proxy): 🐛 proxy calls to api path withou trailing slash to upstream
This commit is contained in:
parent
5286a861e4
commit
3598609d9f
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
server {
|
||||
listen 80 default_server;
|
||||
|
||||
location ^~ /api {
|
||||
location ^~ /api/ {
|
||||
rewrite ^/api/(.*)$ /$1 break;
|
||||
proxy_pass http://directory-api:80;
|
||||
proxy_http_version 1.1;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ server {
|
|||
|
||||
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 {
|
||||
location ^~ /api/ {
|
||||
rewrite ^/api/(.*)$ /$1 break;
|
||||
proxy_pass http://directory-api:80;
|
||||
proxy_http_version 1.1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue