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

Merge branch 'VPN' into 'main'

Vpn

See merge request !1
parents 946585ef e4ecf3ba
No related branches found
No related tags found
1 merge request!1Vpn
......@@ -193,3 +193,4 @@ $RECYCLE.BIN/
*.lnk
# End of https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode,intellij,windows
vpn/config
\ No newline at end of file
......@@ -8,3 +8,5 @@ include:
- ftp/ftp.docker-compose.yml
- nginx/nginx.docker-compose.yml
- apache/apache.docker-compose.yml
- httpforwardproxy/httpforwardproxy.docker-compose.yml
- vpn/vpn.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
services:
vpn:
image: linuxserver/wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Berlin
- SERVERURL=localhost #optional
- SERVERPORT=51820 #optional
- PEERS=1 #optional
- PEERDNS=auto #optional
- INTERNAL_SUBNET=10.13.13.0 #optional
volumes:
- ./config:/config
#- ./modules:/lib/modules
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
networks:
- intranet
\ 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