adding endpoint reference
This commit is contained in:
@@ -57,12 +57,12 @@ http {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
location = /api {
|
||||
return 301 /api/;
|
||||
location = $BACKEND_ENDPOINT {
|
||||
return 301 $BACKEND_ENDPOINT/;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
rewrite ^/api/(.*)$ /$1 break;
|
||||
location $BACKEND_ENDPOINT/ {
|
||||
rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break;
|
||||
proxy_pass http://$BACKEND_HOST:$BACKEND_PORT/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
Reference in New Issue
Block a user