mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 08:45:02 +01:00
hugo boxx
This commit is contained in:
parent
85c26af9e5
commit
6a685309cb
2 changed files with 26 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -1 +1,5 @@
|
|||
docker run --net internal --name hugo-chat-frontend -d --restart=always docker.nilstrieb.dev/hugo-chat-frontend:1.0
|
||||
|
||||
docker run --net internal --name hugo-chat-db -d -e POSTGRES_PASSWORD=huGO123.corsBOSS postgres
|
||||
|
||||
docker run --net internal --name hugo-chat-backend -d docker.nilstrieb.dev/hugo-chat-backend:1.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue