Fix setup nginx script

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

View File

@ -4,7 +4,7 @@
sudo apt update sudo apt update
sudo apt install -y nginx-light certbot python3-certbot-nginx docker.io 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 sudo usermod -a -G docker $USER
newgrp docker newgrp docker

View File

@ -3,8 +3,8 @@
source .env source .env
# Copy config to nginx, substitute and reload it # Copy config to nginx, substitute and reload it
sudo cp git.conf /etc/nginx/conf.d sudo cp git.conf /etc/nginx/conf.d/
sudo sed -i s/GITEA_HOSTNAME/$GITEA_HOSTNAME/g sudo sed -i s/GITEA_HOSTNAME/$GITEA_HOSTNAME/g /etc/nginx/conf.d/git.conf
sudo service nginx reload sudo service nginx reload
# Get ssl certificate # Get ssl certificate