Add favicon to get rid of that annoying 404

This commit is contained in:
Kumi 2019-02-19 15:06:08 +00:00
parent ad3d315e4e
commit 6d906abce3
3 changed files with 21 additions and 9 deletions

View file

@ -1,7 +1,7 @@
server { server {
root /var/www/html; root /var/www/html;
index index.html index.htm index.nginx-debian.html; index index.html index.htm index.nginx-debian.html;
server_name admin360.kumi.host; # managed by Certbot server_name test360.kumi.host; # managed by Certbot
location /.well-known/ { location /.well-known/ {
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
@ -31,23 +31,33 @@ server {
root /opt/vpnmanager/lib/; root /opt/vpnmanager/lib/;
} }
location /img/ {
root /opt/vpnmanager/static/;
}
location / { location / {
uwsgi_pass 127.0.0.1:9360; uwsgi_pass 127.0.0.1:9360;
uwsgi_read_timeout 300; uwsgi_read_timeout 900;
include uwsgi_params; include uwsgi_params;
} }
listen 136.243.186.63:443 ssl; # managed by Certbot listen 5.9.180.2:443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/admin360.kumi.host/fullchain.pem; # managed by Certbot ssl_certificate /etc/letsencrypt/live/test360.kumi.host/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/admin360.kumi.host/privkey.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/test360.kumi.host/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
} }
server { server {
return 301 https://admin360.kumi.host$request_uri; if ($host = test360.kumi.host) {
server_name admin360.kumi.host; return 301 https://$host$request_uri;
} # managed by Certbot
listen 80 default_server;
server_name test360.kumi.host;
return 404; # managed by Certbot
listen [::]:80 default_server;
listen 80 default_server;
} }

BIN
static/img/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View file

@ -26,6 +26,8 @@
<script src="/jq/dist/jquery.min.js"></script> <script src="/jq/dist/jquery.min.js"></script>
<script src="/bs/dist/js/bootstrap.bundle.min.js"></script> <script src="/bs/dist/js/bootstrap.bundle.min.js"></script>
<link rel="icon" type="image/png" href="/img/favicon.png" />
</head> </head>
<body> <body>