refactor(remnawave,exit-node): split bootstrap/sync and generalize ger-nod-02 roles
ansible-core-net / deploy (push) Successful in 1m50s
ansible-core-mon / deploy (push) Successful in 28s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Failing after 3s
ansible-opnsense / deploy (push) Successful in 9s
ansible-rus-central / deploy (push) Successful in 1m7s
ansible-core-net / deploy (push) Successful in 1m50s
ansible-core-mon / deploy (push) Successful in 28s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Failing after 3s
ansible-opnsense / deploy (push) Successful in 9s
ansible-rus-central / deploy (push) Successful in 1m7s
This commit is contained in:
1 parent
83baec4bad
commit
2fc6e39323
19 files changed
+1092
-863
No files matched your search
@@ -0,0 +1,45 @@
|
||||
services:
|
||||
remnawave-nginx:
|
||||
image: {{ remnanode_nginx_image }}
|
||||
container_name: remnawave-nginx
|
||||
hostname: remnawave-nginx
|
||||
restart: always
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- {{ remnanode_cert_dir }}/fullchain.pem:/etc/nginx/ssl/{{ remnanode_selfsteal_domain }}/fullchain.pem:ro
|
||||
- {{ remnanode_cert_dir }}/privkey.pem:/etc/nginx/ssl/{{ remnanode_selfsteal_domain }}/privkey.pem:ro
|
||||
- /dev/shm:/dev/shm:rw
|
||||
- {{ remnanode_www_dir }}:/var/www/html:ro
|
||||
command: sh -c 'rm -f /dev/shm/nginx.sock && nginx -g "daemon off;"'
|
||||
depends_on:
|
||||
- remnanode
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 30m
|
||||
max-file: 5
|
||||
|
||||
remnanode:
|
||||
image: {{ remnanode_image }}
|
||||
container_name: remnanode
|
||||
hostname: remnanode
|
||||
restart: always
|
||||
network_mode: host
|
||||
environment:
|
||||
- NODE_PORT={{ remnanode_node_port }}
|
||||
# Кавычки обязательны: SECRET_KEY — длинный base64/JSON от панели.
|
||||
- SECRET_KEY={{ remnanode_secret_key | to_json }}
|
||||
volumes:
|
||||
- /dev/shm:/dev/shm:rw
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 30m
|
||||
max-file: 5
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 1048576
|
||||
hard: 1048576
|
||||
@@ -0,0 +1,51 @@
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
"" close;
|
||||
}
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ecdh_curve X25519:prime256v1:secp384r1;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305;
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_session_timeout 1d;
|
||||
ssl_session_cache shared:MozSSL:10m;
|
||||
ssl_session_tickets off;
|
||||
|
||||
server {
|
||||
server_name {{ remnanode_selfsteal_domain }};
|
||||
listen unix:/dev/shm/nginx.sock ssl proxy_protocol;
|
||||
http2 on;
|
||||
|
||||
ssl_certificate "/etc/nginx/ssl/{{ remnanode_selfsteal_domain }}/fullchain.pem";
|
||||
ssl_certificate_key "/etc/nginx/ssl/{{ remnanode_selfsteal_domain }}/privkey.pem";
|
||||
ssl_trusted_certificate "/etc/nginx/ssl/{{ remnanode_selfsteal_domain }}/fullchain.pem";
|
||||
|
||||
root /var/www/html;
|
||||
index index.html;
|
||||
|
||||
add_header X-Robots-Tag "noindex, nofollow, noarchive, nosnippet, noimageindex" always;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location = {{ remnanode_xhttp_path }} {
|
||||
default_type text/plain;
|
||||
add_header Cache-Control "no-store" always;
|
||||
return 200 "ok";
|
||||
}
|
||||
|
||||
location = {{ remnanode_xhttp_path }}/ {
|
||||
default_type text/plain;
|
||||
add_header Cache-Control "no-store" always;
|
||||
return 200 "ok";
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen unix:/dev/shm/nginx.sock ssl proxy_protocol default_server;
|
||||
server_name _;
|
||||
add_header X-Robots-Tag "noindex, nofollow, noarchive, nosnippet, noimageindex" always;
|
||||
ssl_reject_handshake on;
|
||||
return 444;
|
||||
}
|
||||
Reference in new issue
Block a user