Dockerfile is now based on phusion/baseimage and enables mandatory https

access via a self-signed certificate.
This commit is contained in:
andy
2014-05-19 09:33:44 +02:00
parent 18138ce567
commit 264d1a67d7
11 changed files with 89 additions and 53 deletions

15
10_ttrss.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
set -x
php /root/configure-db.php
php /root/configure-plugin-mobilize.php
# Generate the TLS certificate for our Tiny Tiny RSS server instance.
openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \
-subj "/C=US/ST=World/L=World/O=ttrss/CN=ttrss" \
-keyout "/etc/ssl/private/ttrss.key" \
-out "/etc/ssl/certs/ttrss.cert"
chmod 600 "/etc/ssl/private/ttrss.key"
chmod 600 "/etc/ssl/certs/ttrss.cert"