Skip to content
Snippets Groups Projects
Commit 3fd4fc18 authored by Hoai Viet Nguyen's avatar Hoai Viet Nguyen
Browse files

add forward proxy authentication

parent 946585ef
No related branches found
No related tags found
1 merge request!1Vpn
...@@ -8,3 +8,4 @@ include: ...@@ -8,3 +8,4 @@ include:
- ftp/ftp.docker-compose.yml - ftp/ftp.docker-compose.yml
- nginx/nginx.docker-compose.yml - nginx/nginx.docker-compose.yml
- apache/apache.docker-compose.yml - apache/apache.docker-compose.yml
- httpforwardproxy/httpforwardproxy.docker-compose.yml
\ No newline at end of file
viet:$apr1$z385Ast0$zCDKRE.F.ozWRDft0wElb.
FROM nginx:stable-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY .htpasswd /etc/nginx/.htpasswd
\ No newline at end of file
services:
httpforwardproxy:
build: .
ports:
- 8888:8888
networks:
- intranet
\ No newline at end of file
server {
listen 8888;
location / {
resolver 127.0.0.11;
proxy_pass http://$http_host$uri$is_args$args;
auth_basic "Intranet";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment