Added dockerfile

Issue #5
Close #5
This commit is contained in:
laucyun
2022-04-20 21:30:15 +08:00
parent da7d13612c
commit 9344cb1205
6 changed files with 180 additions and 28 deletions
+20 -14
View File
@@ -1,18 +1,24 @@
server {
listen 80;
server_name eyes.sh www.eyes.sh *.eyes.sh;
uwsgi_pass_request_headers on;
listen 80;
server_name localhost $ADMIN_DOMAI;
uwsgi_pass_request_headers on;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
alias /dnslog/static/;
}
if ($request_uri ~* "^/$") {
return 302 $scheme://$http_host/login;
}
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8000;
}
location = /favicon.ico {
access_log off; log_not_found off;
}
location /static/ {
alias /dnslog/static/;
}
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8000;
}
}