We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 415f104 commit ca47165Copy full SHA for ca47165
web/rootfs/etc/cont-init.d/10-config
@@ -7,6 +7,15 @@ mkdir -p \
7
/var/lib/nginx/tmp/client_body \
8
/var/tmp/nginx
9
10
+# generate keys (maybe)
11
+if [[ -f /config/keys/cert.key && -f /config/keys/cert.crt ]]; then
12
+ echo "using keys found in /config/keys"
13
+else
14
+ echo "generating self-signed keys in /config/keys, you can replace these with your own keys if required"
15
+ SUBJECT="/C=US/ST=TX/L=Austin/O=jitsi.org/OU=Jitsi Server/CN=*"
16
+ openssl req -new -x509 -days 3650 -nodes -out /config/keys/cert.crt -keyout /config/keys/cert.key -subj "$SUBJECT"
17
+fi
18
+
19
# copy config files
20
if [[ ! -f /config/nginx/nginx.conf ]]; then
21
cp /defaults/nginx.conf /config/nginx/nginx.conf
web/rootfs/etc/cont-init.d/20-keygen
0 commit comments