Browse Source

Removed authproxy directory.

pull/301/head
rbinrais 5 years ago
parent
commit
ca38634dd3
3 changed files with 0 additions and 46 deletions
  1. 13
      authproxy/Dockerfile
  2. 23
      authproxy/nginx.conf
  3. 10
      authproxy/proxy.conf

13
authproxy/Dockerfile

@ -1,13 +0,0 @@
FROM nginx:stable-alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY proxy.conf /app/proxy.conf
ENV PORT=8888
ENV PROXY_PASS=""
ENV USER_NAME=""
ENV USER_GROUPS=""
EXPOSE ${PORT}
CMD envsubst < /app/proxy.conf > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'

23
authproxy/nginx.conf

@ -1,23 +0,0 @@
worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /app/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
}

10
authproxy/proxy.conf

@ -1,10 +0,0 @@
server {
listen ${PORT};
location / {
proxy_pass ${PROXY_PASS};
proxy_set_header X-Auth-UserName ${USER_NAME};
proxy_set_header X-Auth-Groups ${USER_GROUPS};
}
}
Loading…
Cancel
Save