mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 20:14:54 +00:00
Docerizing and proxying the microservices
This commit is contained in:
29
nginx.conf
Normal file
29
nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user