add example nginx config

This commit is contained in:
Aaron Po
2026-02-17 02:28:45 +00:00
parent 56e179c36d
commit 639690a7f7
3 changed files with 74 additions and 0 deletions

24
README.md Normal file
View File

@@ -0,0 +1,24 @@
# Gitea config
# nginx
First follow the http only nginx conf
then run
# Install certbot
sudo dnf install certbot python3-certbot-nginx
# Create webroot directory
sudo mkdir -p /var/www/certbot
# Get certificate
sudo certbot certonly --webroot \
-w /var/www/certbot \
-d git.example.com \
--email example@gmail.com \
--agree-tos \
--no-eff-email
then change the config over to the https nginx config