Docerizing and proxying the microservices

This commit is contained in:
Ammar Qaffaf
2024-02-21 16:56:41 -05:00
parent d34bc13d90
commit ff1bb4cc41
7 changed files with 155 additions and 2 deletions

29
nginx.conf Normal file
View File

@ -0,0 +1,29 @@
events {}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 443;
server_name localhost;
location /auth {
alias /usr/share/nginx/html/auth;
try_files $uri $uri/ /auth/index.html;
}
location /backend {
alias /usr/share/nginx/html/backend;
try_files $uri $uri/ /backend/index.html;
}
# error pages
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}