compose the basics

This commit is contained in:
nora 2022-09-03 21:03:33 +02:00
parent 99d5edbb94
commit c97168fe00
4 changed files with 62 additions and 3 deletions

View file

@ -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;
}
}