Skip to content

Commit 1d9634b

Browse files
committed
feat: add entrypoint to nginx
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent c0b4222 commit 1d9634b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
# Generate self-signed certificate if it doesn't exist
4+
if [ ! -f /tmp/nextcloud.pem ]; then
5+
echo "Generating self-signed certificate..."
6+
openssl req -new -x509 -days 365 -nodes \
7+
-subj "/C=BR/ST=State/L=City/O=Nextcloud/CN=localhost" \
8+
-out /tmp/nextcloud.pem -keyout /tmp/nextcloud.pem 2>/dev/null || true
9+
fi
10+
11+
# Execute nginx
12+
exec nginx -g "daemon off;"

0 commit comments

Comments
 (0)