1
Fork 0

Add Nginx install script

This commit is contained in:
Edgar P. Burkhart 2023-05-16 15:14:06 +02:00
parent 4da71a3fc4
commit 14ef3c9dcd
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
17 changed files with 9 additions and 1 deletions

9
src/Nginx/.install.fish Executable file
View 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/

View File

@ -41,7 +41,6 @@ http {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
include conf/00-hsts.conf;
return 301 https://$host$request_uri;
}