Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
#!/bin/bash
cd /home/container

# Make internal Docker IP address available to processes.
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP

# Replace Startup Variables
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo -e ":/home/container$ ${MODIFIED_STARTUP}"

# Run the Server
eval ${MODIFIED_STARTUP}
eval ${MODIFIED_STARTUP}
1 change: 1 addition & 0 deletions nginx/conf.d/default-ssl.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ server {
# error_log /home/container/logs/nerror.log error;

set_real_ip_from 127.0.0.1;
set_real_ip_from 172.18.0.0/16;
real_ip_header CF-Connecting-IP;
real_ip_recursive on;

Expand Down
1 change: 1 addition & 0 deletions nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ server {
# error_log /home/container/logs/nerror.log error;

set_real_ip_from 127.0.0.1;
set_real_ip_from 172.18.0.0/16;
real_ip_header CF-Connecting-IP;
real_ip_recursive on;

Expand Down
1 change: 1 addition & 0 deletions nginx/conf.d/default.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ server {
# error_log /home/container/logs/nerror.log error;

set_real_ip_from 127.0.0.1;
set_real_ip_from 172.18.0.0/16;
real_ip_header CF-Connecting-IP;
real_ip_recursive on;

Expand Down
Loading