Add Nginx install script
This commit is contained in:
parent
4da71a3fc4
commit
14ef3c9dcd
17 changed files with 9 additions and 1 deletions
9
src/Nginx/.install.fish
Executable file
9
src/Nginx/.install.fish
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
sudo mkdir -p /etc/nginx
|
||||||
|
sudo install -m a=r,u=rw nginx.conf /etc/nginx/
|
||||||
|
|
||||||
|
sudo mkdir -p /etc/nginx/conf
|
||||||
|
sudo install -m a=r,u=rw conf/* /etc/nginx/conf/
|
||||||
|
|
||||||
|
sudo mkdir -p /etc/nginx/sites-enabled
|
||||||
|
sudo install -m a=r,u=rw sites/* /etc/nginx/sites-enabled/
|
|
@ -41,7 +41,6 @@ http {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
server_name _;
|
server_name _;
|
||||||
include conf/00-hsts.conf;
|
|
||||||
|
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue