Skip to content

Commit

Permalink
add ssl map
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Mar 12, 2024
1 parent b557a1d commit 6ed583b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ doas podman run -itd \
-e AI_SERVICE_PORT=$AI_SERVICE_PORT \
-p 80:80 \
-p 443:443 \
-v /etc/ssl/$DOMAIN:/etc/ssl:rw \
monius/docker-instant-ai
```

Expand Down
3 changes: 1 addition & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ mkdir -p /etc/nginx/conf.d
mkdir -p /etc/nginx/service.d
mkdir -p /etc/nginx/html


cat <<'EOF' | tee /etc/nginx/conf.d/gzip.conf
types_hash_max_size 2048;
Expand Down Expand Up @@ -255,7 +254,7 @@ EOF
}
EOF

if [ ! -d $NG_SSL ] && [ -e $NG_ACME ]; then
if [ ! -e "$SSL_FULL_CHAIN" ] && [ -e $NG_ACME ]; then
mkdir -p $NG_SSL
$NG_ACME --issue -d "$AI_FULL_DOMAIN" --dns dns_cf -k ec-256
$NG_ACME --install-cert -d "$AI_FULL_DOMAIN" \
Expand Down

0 comments on commit 6ed583b

Please sign in to comment.