Verified Commit f917c29e authored by tr's avatar tr
Browse files

Always configure server name and body size

parent 5741b9bf
#!/usr/bin/env bash
if [ -n "$SERVER_NAME" ]; then
sed \
-e "s#server_name.*#server_name $SERVER_NAME;#" \
-i /etc/nginx/conf.d/default.conf
fi
sed \
-e "s#server_name.*#server_name ${SERVER_NAME:-_};#" \
-e "s#/client_max_body_size.*#client_max_body_size ${BODY_SIZE:-512M};#" \
-i /etc/nginx/conf.d/default.conf
if [ -n "$TLS_KEY" ] && [ -n "$TLS_CERT" ]; then
if [ ! -f "$TLS_KEY" ] && [ ! -f "$TLS_CERT" ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment