Initial commit
Drone CI steps, Dockerfile for ENV arguments and README.md
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
FROM nginxinc/nginx-unprivileged:alpine-slim
|
||||
|
||||
# Set default environment variables
|
||||
ENV REDIRECT_TARGET="https://example.com" \
|
||||
REDIRECT_CODE="301" \
|
||||
LISTEN_PORT="8080" \
|
||||
NGINX_ENVSUBST_FILTER="REDIRECT_TARGET REDIRECT_CODE LISTEN_PORT"
|
||||
|
||||
# Copy template for automatic envsubst rendering on startup
|
||||
COPY templates/default.conf.template /etc/nginx/templates/default.conf.template
|
||||
|
||||
# Default unprivileged port
|
||||
EXPOSE 8080
|
||||
Reference in New Issue
Block a user