szurubooru/client/docker-start.sh
Shyam Sunder 636498ad38 client+server: implement HTML caching and URL prefix determination
* 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
2021-09-24 20:04:56 -04:00

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