Initial commit
This commit is contained in:
20
frontend/nginx.conf
Normal file
20
frontend/nginx.conf
Normal file
@@ -0,0 +1,20 @@
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
|
||||
auth_basic "NetDoc Pro";
|
||||
auth_basic_user_file /etc/nginx/.htpasswd;
|
||||
|
||||
location /api/ {
|
||||
set $upstream http://api:8000;
|
||||
proxy_pass $upstream;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user