added subdomains
parent
2dd58eba64
commit
240b7a8e8b
@ -0,0 +1,2 @@
|
|||||||
|
api.DOMAIN_NAME
|
||||||
|
userserver.DOMAIN_NAME
|
@ -1,19 +1,33 @@
|
|||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name SERVERNAME
|
server_name DOMAIN_NAME;
|
||||||
ssl_certificate /etc/letsencrypt/live/flotte.duckdns.org/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/DOMAIN_NAME/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/flotte.duckdns.org/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/DOMAIN_NAME/privkey.pem;
|
||||||
|
|
||||||
location /user-management {
|
location / {
|
||||||
rewrite /user-management(.*)$ $1 break;
|
proxy_pass http://frontend:8080;
|
||||||
proxy_pass http://user-management:8080;
|
|
||||||
}
|
}
|
||||||
location = /graphql {
|
|
||||||
proxy_pass http://api-server:4000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name api.DOMAIN_NAME;
|
||||||
|
ssl_certificate /etc/letsencrypt/live/api.DOMAIN_NAME/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/api.DOMAIN_NAME/privkey.pem;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://frontend:8080;
|
proxy_pass http://api-server:4000/graphql;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name userserver.DOMAIN_NAME;
|
||||||
|
ssl_certificate /etc/letsencrypt/live/userserver.DOMAIN_NAME/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/userserver.DOMAIN_NAME/privkey.pem;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://user-management:8080;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue