Move external submodules to /lib

This commit is contained in:
Kumi 2019-01-17 20:15:40 +01:00
parent c129f45151
commit e1594d3766
5 changed files with 19 additions and 19 deletions

6
.gitmodules vendored
View file

@ -1,9 +1,9 @@
[submodule "static/bs"] [submodule "static/bs"]
path = static/bs path = lib/bs
url = https://github.com/twbs/bootstrap url = https://github.com/twbs/bootstrap
[submodule "static/fa"] [submodule "static/fa"]
path = static/fa path = lib/fa
url = https://github.com/FortAwesome/Font-Awesome url = https://github.com/FortAwesome/Font-Awesome
[submodule "static/jq"] [submodule "static/jq"]
path = static/jq path = lib/jq
url = https://github.com/jquery/jquery url = https://github.com/jquery/jquery

View file

View file

View file

View file

@ -1,26 +1,26 @@
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 admin360.kumi.host; # managed by Certbot
location /.well-known/ { location /.well-known/ {
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
} }
location /static { location /static {
alias /opt/vpnmanager/static/static_root/; alias /opt/vpnmanager/static/static_root/;
} }
location /js/ { location /js/ {
root /opt/vpnmanager/static/; root /opt/vpnmanager/static/;
} }
location /fa/ { location /fa/ {
root /opt/vpnmanager/static/; root /opt/vpnmanager/lib/;
} }
location /bs/ { location /bs/ {
root /opt/vpnmanager/static/; root /opt/vpnmanager/lib/;
} }
location /css/ { location /css/ {
@ -28,14 +28,14 @@ server {
} }
location /jq/ { location /jq/ {
root /opt/vpnmanager/static/; root /opt/vpnmanager/lib/;
} }
location / { location / {
uwsgi_pass 127.0.0.1:9360; uwsgi_pass 127.0.0.1:9360;
uwsgi_read_timeout 300; uwsgi_read_timeout 300;
include uwsgi_params; include uwsgi_params;
} }
listen 136.243.186.63:443 ssl; # managed by Certbot listen 136.243.186.63:443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/admin360.kumi.host/fullchain.pem; # managed by Certbot ssl_certificate /etc/letsencrypt/live/admin360.kumi.host/fullchain.pem; # managed by Certbot