add basic gitea with nginx reverse proxy

This commit is contained in:
Matthew Tran
2023-09-11 02:16:04 +00:00
parent 4943dbb1f0
commit 923479da89
4 changed files with 27 additions and 6 deletions
+3 -2
View File
@@ -1,18 +1,19 @@
#!/bin/sh
# server needs to be up to grab certificates
nginx
while [ ! -f /var/run/nginx.pid ]
do
sleep 1
done
# server needs to be up to grab certificates
certbot --nginx \
--test-cert \
--webroot-path /var/www/matthewtran.com \
--non-interactive --agree-tos -m matthewlamtran@berkeley.edu \
-d matthewtran.com \
-d www.matthewtran.com
-d www.matthewtran.com \
-d git.matthewtran.com
nginx -s reload