Initial commit
This commit is contained in:
2
nginx/htpasswd
Normal file
2
nginx/htpasswd
Normal file
@@ -0,0 +1,2 @@
|
||||
technician:$apr1$w4Ix.MV6$WR0HTzCZOkVHJOs/8ndHv/
|
||||
|
||||
27
nginx/nginx.conf
Normal file
27
nginx/nginx.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
events {}
|
||||
|
||||
http {
|
||||
# Allow larger file uploads
|
||||
client_max_body_size 50M;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
# Basic authentication
|
||||
auth_basic "AP Capture";
|
||||
auth_basic_user_file /etc/nginx/htpasswd;
|
||||
|
||||
# Serve static frontend
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
}
|
||||
|
||||
# Proxy API requests to backend
|
||||
location /api/ {
|
||||
proxy_pass http://backend:8000/api/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user