mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-15 00:55:09 +01:00
compose the basics
This commit is contained in:
parent
99d5edbb94
commit
c97168fe00
4 changed files with 62 additions and 3 deletions
|
|
@ -15,11 +15,12 @@ http {
|
|||
listen 80;
|
||||
|
||||
server_name "docker.nilstrieb.dev";
|
||||
set $target "http://registry:5000/";
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
location / {
|
||||
proxy_pass http://registry:5000/;
|
||||
proxy_pass $target;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -27,9 +28,10 @@ http {
|
|||
listen 80;
|
||||
|
||||
server_name "cors-school.nilstrieb.dev";
|
||||
set $target "http://cors-school-frontend/";
|
||||
|
||||
location / {
|
||||
proxy_pass http://cors-school-frontend/;
|
||||
proxy_pass $target;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -37,9 +39,10 @@ http {
|
|||
listen 80;
|
||||
|
||||
server_name "api.cors-school.nilstrieb.dev";
|
||||
set $target "http://cors-school-backend:8080/";
|
||||
|
||||
location / {
|
||||
proxy_pass http://cors-school-backend:8080/;
|
||||
proxy_pass $target;
|
||||
add_header Access-Control-Allow-Origin cors-school.nilstrieb.dev;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue