hugo boxx

This commit is contained in:
nora 2022-09-10 22:12:43 +02:00
parent 85c26af9e5
commit 6a685309cb
2 changed files with 26 additions and 0 deletions

View file

@ -67,5 +67,27 @@ http {
}
}
server {
listen 443 ssl;
server_name "api.hugo-chat.nilstrieb.dev";
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'https://hugo-chat.nilstrieb.dev';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, PUT, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
return 204;
}
proxy_pass_request_headers on;
proxy_pass http://hugo-chat-backend:8080/;
}
}
server_tokens off;
}