modified: README.md

modified:   entrypoint-nginx.sh
This commit is contained in:
viljarb
2026-04-16 16:54:50 +00:00
parent 68f48ae8bd
commit 06a5c6da18
2 changed files with 7 additions and 2 deletions

View File

@@ -1 +1,6 @@
# site
## folders
* *html*: website run by nginx
* *gitea*: gitea data
* *logs*: all logs in one place

View File

@@ -2,7 +2,7 @@
set -e
if [ -n "$DOMAIN" ] && [ -n "$EMAIL" ]; then
# production: get Let's Encrypt cert
# for production: get Let's Encrypt cert
if [ ! -f "/etc/letsencrypt/live/$DOMAIN/fullchain.pem" ]; then
certbot certonly --standalone \
-d "$DOMAIN" \
@@ -13,7 +13,7 @@ if [ -n "$DOMAIN" ] && [ -n "$EMAIL" ]; then
export SSL_CERTIFICATE="/etc/letsencrypt/live/$DOMAIN/fullchain.pem"
export SSL_CERTIFICATE_KEY="/etc/letsencrypt/live/$DOMAIN/privkey.pem"
else
# development: self-signed cert
# for development: self-signed cert
echo "Development mode: using self-signed certificate"
mkdir -p /etc/nginx/certs
if [ ! -f /etc/nginx/certs/cert.pem ]; then