mirror of
https://github.com/viljarb0/site.git
synced 2026-08-12 00:57:54 +00:00
modified: README.md
modified: entrypoint-nginx.sh
This commit is contained in:
@@ -1 +1,6 @@
|
||||
# site
|
||||
|
||||
## folders
|
||||
* *html*: website run by nginx
|
||||
* *gitea*: gitea data
|
||||
* *logs*: all logs in one place
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user