mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
cors frontend
This commit is contained in:
parent
5f2304ea29
commit
6b6bd16970
3 changed files with 24 additions and 0 deletions
|
|
@ -29,5 +29,18 @@ http {
|
|||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/live/nilstrieb.dev/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/certs/live/nilstrieb.dev/privkey.pem;
|
||||
|
||||
server_name "cors-school.nilstrieb.dev";
|
||||
|
||||
location / {
|
||||
proxy_pass https://cors-school-frontend:80/;
|
||||
}
|
||||
}
|
||||
|
||||
server_tokens off;
|
||||
}
|
||||
|
|
@ -23,5 +23,15 @@ http {
|
|||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
server_name "cors-school.nilstrieb.dev";
|
||||
|
||||
location / {
|
||||
proxy_pass http://cors-school-frontend/;
|
||||
}
|
||||
}
|
||||
|
||||
server_tokens off;
|
||||
}
|
||||
1
run_scripts/cors-school.sh
Normal file
1
run_scripts/cors-school.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
docker run --net internal --name cors-school-frontend -d --restart=always private-docker-registry.nilstrieb.dev/cors-school-frontend:1.0.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue