* Uses 'X-Forwarded-Prefix' header to determine base URL if not explicitly defined * Authentication ignored for HTML generation to improve caching * Also add logging of 'User-Agent' for HTML requests
12 lines
240 B
Bash
Executable file
12 lines
240 B
Bash
Executable file
#!/usr/bin/dumb-init /bin/sh
|
|
|
|
# Create cache directory
|
|
mkdir -p /tmp/nginx-cache
|
|
chmod a+rwx /tmp/nginx-cache
|
|
|
|
# Integrate environment variables
|
|
sed -i "s|__BACKEND__|${BACKEND_HOST}|" \
|
|
/etc/nginx/nginx.conf
|
|
|
|
# Start server
|
|
exec nginx
|