11 lines
402 B
Plaintext
11 lines
402 B
Plaintext
|
|
# Lägg till detta i /etc/nginx/sites-enabled/api.landvex.com
|
||
|
|
# innan den sista "location /" blocket
|
||
|
|
|
||
|
|
location /api/v1/ {
|
||
|
|
proxy_pass http://127.0.0.1:7073/api/v1/;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
add_header Cache-Control "no-store, no-cache, must-revalidate" always;
|
||
|
|
if ($request_method = OPTIONS) { return 204; }
|
||
|
|
}
|