forked from dockers/pixelfed
Add FORCE_HTTPS
Setting FORCE_HTTPS in env forces all generated links to use https protocol.
This commit is contained in:
parent
0e88d354a6
commit
d554839c43
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
set -xeo pipefail
|
||||
|
||||
if [ ! -z $FORCE_HTTPS ]
|
||||
then
|
||||
sed -i 's#</VirtualHost#SetEnv HTTPS on\n</VirtualHost#' /etc/apache2/sites-enabled/000-default.conf
|
||||
fi
|
||||
|
||||
cp -r storage.skel/* storage/
|
||||
|
||||
php /wait-for-db.php
|
||||
|
|
Loading…
Reference in a new issue