We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0b4222 commit 1d9634bCopy full SHA for 1d9634b
.docker/scripts/nginx-entrypoint.sh
@@ -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