mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 03:08:32 +01:00
feat: openvpn & cert manager
This commit is contained in:
42
roles/openvpn/templates/atlantishq.conf
Normal file
42
roles/openvpn/templates/atlantishq.conf
Normal file
@@ -0,0 +1,42 @@
|
||||
server 172.16.1.0 255.255.255.0
|
||||
#server-ipv6 fd2a:aef:608:1::/64
|
||||
|
||||
dev athq_sheppyvpn
|
||||
dev-type tun
|
||||
|
||||
proto tcp
|
||||
port 7012
|
||||
|
||||
topology subnet
|
||||
client-to-client
|
||||
|
||||
# disable logging
|
||||
#log /dev/null
|
||||
#status /dev/null
|
||||
|
||||
script-security 2
|
||||
tls-server
|
||||
mode server
|
||||
#duplicate-cn
|
||||
|
||||
persist-key
|
||||
persist-tun
|
||||
|
||||
keepalive 10 60
|
||||
|
||||
user nobody
|
||||
group nogroup
|
||||
|
||||
auth SHA512
|
||||
cipher AES-256-CBC
|
||||
|
||||
ca atlantishq/ca.crt
|
||||
cert atlantishq/vpn.atlantishq.de.crt
|
||||
key atlantishq/vpn.atlantishq.de.key
|
||||
dh atlantishq/dhparam
|
||||
|
||||
crl-verify /opt/data/certificate-manager/crl.pem
|
||||
|
||||
client-config-dir /opt/certificate-manager/client-config-dir
|
||||
ccd-exclusive
|
||||
management 127.0.0.1 {{ openvpn_management_port }} {{ openvpn_management_passfile }}
|
||||
31
roles/openvpn/templates/cert-manager-conf.py
Normal file
31
roles/openvpn/templates/cert-manager-conf.py
Normal file
@@ -0,0 +1,31 @@
|
||||
CA_KEY_SIZE = 2048
|
||||
CA_NAME = "AtlantisHQv2"
|
||||
|
||||
CRL_PATH = "./data/crl.pem"
|
||||
KEYS_PATH = "./data/keys/"
|
||||
|
||||
|
||||
CA_KEY_PATH = "./keys/ca.key"
|
||||
CA_CERT_PATH = "./keys/ca.crt"
|
||||
CA_CERT_PATH = "./keys/ca.crt"
|
||||
|
||||
C_DEFAULT = "DE"
|
||||
L_DEFAULT = "Bavaria"
|
||||
ST_DEFAULT = "Erlangen"
|
||||
O_DEFAULT = "AtlantisHQ"
|
||||
OU_DEFAULT = "Sheppy"
|
||||
|
||||
SQLALCHEMY_DATABASE_URI = "sqlite:///./data/sqlite.db"
|
||||
CREATE_CA_IF_NOT_EXISTS = True
|
||||
LOAD_MISSING_CERTS_TO_DB = False
|
||||
|
||||
VPN_CONFIG_DIR_PATH = "./data/ccd/"
|
||||
ENABLE_VPN_CONNECTION = False
|
||||
VPN_MANAGEMENT_HOST = "host.docker.internal"
|
||||
VPN_MANAGEMENT_PORT = {{ openvpn_management_port }}
|
||||
VPN_MANAGEMENT_PASSWORD = "{{ openvpn_management_password }}"
|
||||
NGINX_CERT_MAPS_LOCATION = "./data/nginx_maps.j2"
|
||||
|
||||
VPN_SERVER = "atlantishq.de"
|
||||
VPN_PORT = 7012
|
||||
VPN_PROTO = "tcp"
|
||||
9
roles/openvpn/templates/certificate-manager.yaml
Normal file
9
roles/openvpn/templates/certificate-manager.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
certificate-manager:
|
||||
image: registry.atlantishq.de/certificate-manager:latest
|
||||
restart: always
|
||||
ports:
|
||||
- 5000:5000
|
||||
volumes:
|
||||
- /data/certificate-manager/:/app/data/
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway
|
||||
Reference in New Issue
Block a user