feat(infra): reworked everything so that a single docker builds all + made sure everything works
This commit is contained in:
parent
68f8d87477
commit
157b06ea4b
7 changed files with 23 additions and 14 deletions
|
|
@ -18,8 +18,8 @@ server {
|
|||
charset UTF-8;
|
||||
listen [::]:443 ssl;
|
||||
listen 443 ssl;
|
||||
server_name $NGINX_DOMAIN;
|
||||
resolver $NGINX_RESOLVERS;
|
||||
server_name $NGINX_DOMAIN;
|
||||
|
||||
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
|
||||
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
#forward the post request to the microservice
|
||||
location /api/icons/set/ {
|
||||
rewrite ^/api/icons/set/(.*) $1 break;
|
||||
proxy_pass http://icons-service/set/$uri;
|
||||
proxy_pass http://icons/set/$uri;
|
||||
}
|
||||
|
||||
#handle the get request with nginx, since it does this well
|
||||
location /api/icons/get/ {
|
||||
rewrite ^/api/icons/get/(.*) /$1 break;
|
||||
root /volumes/icons;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue