mirror of
https://github.com/lijiejie/eyes.sh.git
synced 2026-09-22 01:30:43 +08:00
解决配置域名后访问页面404问题
This commit is contained in:
@@ -23,8 +23,6 @@ RUN apt-get install -y \
|
|||||||
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
|
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
|
||||||
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
||||||
|
|
||||||
RUN cp /dnslog/dnslog_nginx.conf /etc/nginx/conf.d/default.conf
|
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
@@ -30,7 +30,7 @@ pyenv virtualenv 3.8.2 dnslog
|
|||||||
~/.pyenv/versions/dnslog/bin/python manage.py collectstatic
|
~/.pyenv/versions/dnslog/bin/python manage.py collectstatic
|
||||||
~/.pyenv/versions/dnslog/bin/gunicorn --workers 5 --bind 127.0.0.1:8000 dnslog.wsgi:application --daemon
|
~/.pyenv/versions/dnslog/bin/gunicorn --workers 5 --bind 127.0.0.1:8000 dnslog.wsgi:application --daemon
|
||||||
nohup ~/.pyenv/versions/3.8.2/envs/dnslog/bin/python3.8 ./zoneresolver.py &
|
nohup ~/.pyenv/versions/3.8.2/envs/dnslog/bin/python3.8 ./zoneresolver.py &
|
||||||
cp dnslog_nginx.conf /etc/nginx/conf.d/
|
envsubst '$ADMIN_DOMAIN' < /dnslog/dnslog_nginx.conf > /etc/nginx/conf.d/default.conf
|
||||||
setsebool httpd_can_network_connect on
|
setsebool httpd_can_network_connect on
|
||||||
setenforce permissive
|
setenforce permissive
|
||||||
systemctl restart nginx
|
systemctl restart nginx
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ services:
|
|||||||
- 53:53/tcp
|
- 53:53/tcp
|
||||||
- 53:53/udp
|
- 53:53/udp
|
||||||
- 8080:80/tcp
|
- 8080:80/tcp
|
||||||
|
command: /bin/bash -c "envsubst '$$ADMIN_DOMAIN' < /dnslog/dnslog_nginx.conf > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "wget -nv -t1 --spider http://localhost/login --no-check-certificate > /dev/null"
|
test: "wget -nv -t1 --spider http://localhost/login --no-check-certificate > /dev/null"
|
||||||
interval: 10s
|
interval: 10s
|
||||||
|
|||||||
Reference in New Issue
Block a user