Fix setup nginx script

This commit is contained in:
Digital Studium committed 2023-03-25 14:49:36 +00:00
1 parent 61a7a4696a
commit f32346b331
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
sudo apt update
sudo apt install -y nginx-light certbot python3-certbot-nginx docker.io
# Add current user to `docker` group and switch to this group
# Add current user to docker group and switch to this group
sudo usermod -a -G docker $USER
newgrp docker
+2 -2
View File
@@ -3,8 +3,8 @@
source .env
# Copy config to nginx, substitute and reload it
sudo cp git.conf /etc/nginx/conf.d
sudo sed -i s/GITEA_HOSTNAME/$GITEA_HOSTNAME/g
sudo cp git.conf /etc/nginx/conf.d/
sudo sed -i s/GITEA_HOSTNAME/$GITEA_HOSTNAME/g /etc/nginx/conf.d/git.conf
sudo service nginx reload
# Get ssl certificate