docker-seafile/scripts/start-ngix.sh
2019-01-29 20:29:46 +01:00

8 lines
221 B
Bash

#!/bin/sh
echo "$SEAF_FRONTEND" | IFS=';' while read IP; do
echo "set_real_ip_from $IP;" >> /etc/nginx/realip.conf
done
#This script is only supposed to run once
rm -f $0 && ln -s /usr/sbin/nginx $0 && /usr/sbin/nginx