2023-03-25 12:07:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source .env
|
|
|
|
|
|
|
|
# Copy config to nginx, substitute and reload it
|
2023-03-25 14:49:36 +00:00
|
|
|
sudo cp git.conf /etc/nginx/conf.d/
|
|
|
|
sudo sed -i s/GITEA_HOSTNAME/$GITEA_HOSTNAME/g /etc/nginx/conf.d/git.conf
|
2023-03-25 12:07:14 +00:00
|
|
|
sudo service nginx reload
|
|
|
|
|
|
|
|
# Get ssl certificate
|
|
|
|
sudo certbot --non-interactive --agree-tos -m $EMAIL
|
|
|
|
|