#!/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