-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ Cloudflare or your favourite DNS provider. | |
|
||
### VPS | ||
|
||
* Debian 10-11 (Ubuntu works, though requires some inteventions) | ||
* Debian 10-12 (Ubuntu works, though requires some/many interventions) | ||
* Large folder for docker data (Done by VPS via large disk) | ||
* ssh authorization key for root user (Done by VPS or | ||
`ssh-copy-id [email protected]`) | ||
|
@@ -103,8 +103,9 @@ Host mayurifag-prod | |
|
||
| Name | Default endpoint | App. Port | | ||
| ----------------------- | -------------------------------------------- | ----------- | | ||
| 3proxy | <socks5://mayurifag.local:1080 or 3128 | 1080/3128 | | ||
| Blocky | - | - | | ||
| 3proxy | <socks5://mayurifag.local:1080> or 3128 | 1080/3128 | | ||
| Blocky | [DNS] -> <ip>:53 | 53 | | ||
| Dockovpn | <http://dockovpn.mayurifag.local> | 1194/8080 | | ||
| Hemmelig | <http://secret.mayurifag.local> | 3000 | | ||
| mayurifag.github.io | <http://mayurifag.local> | 8005 | | ||
| Navidrome | <http://mus.mayurifag.local> | 80 | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
dockovpn_enabled: true | ||
dockovpn_available_externally: "true" | ||
|
||
dockovpn_subdomain: "vpn" | ||
dockovpn_port: 1194 | ||
dockovpn_client_config_port: 9812 | ||
|
||
# specs | ||
dockovpn_memory: 1g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
- name: Get external IPv4 address | ||
ansible.builtin.set_fact: | ||
external_ipv4: "{{ ansible_default_ipv4.address }}" | ||
|
||
- name: DockerVPN Container | ||
community.docker.docker_container: | ||
name: dockovpn | ||
image: alekslitvinenk/openvpn:latest | ||
pull: true | ||
capabilities: | ||
- NET_ADMIN | ||
ports: | ||
- "{{ dockovpn_port }}:1194/udp" | ||
- "{{ dockovpn_client_config_port }}:8080/tcp" | ||
env: | ||
HOST_ADDR: "{{ external_ipv4 }}" | ||
restart_policy: unless-stopped | ||
memory: "{{ dockovpn_memory }}" | ||
labels: | ||
traefik.enable: "{{ dockovpn_available_externally }}" | ||
traefik.http.routers.dockovpn.rule: "Host(`{{ dockovpn_subdomain }}.{{ server_hostname }}`)" | ||
traefik.http.services.dockovpn.loadbalancer.server.port: "8080" | ||
traefik.http.routers.dockovpn.middlewares: "secure-headers@file" |