21 lines
408 B
Nginx Configuration File
21 lines
408 B
Nginx Configuration File
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;
|
|
}
|
|
}
|