chisel
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
---
|
||||
# apt_repositories:
|
||||
# - http://mirrors.online.net
|
||||
#######
|
||||
# APT #
|
||||
#######
|
||||
|
||||
apt_packages:
|
||||
- name: openssh-server
|
||||
- name: proxychains
|
||||
|
||||
apt_repositories_sources:
|
||||
- deb http://mirrors.online.net/ubuntu focal main restricted
|
||||
- deb http://mirrors.online.net/ubuntu focal-updates main restricted
|
||||
@@ -14,6 +19,10 @@ apt_repositories_sources:
|
||||
- deb http://security.ubuntu.com/ubuntu focal-security universe
|
||||
- deb http://security.ubuntu.com/ubuntu focal-security multiverse
|
||||
|
||||
############
|
||||
# ALERTING #
|
||||
############
|
||||
|
||||
alerts_cron:
|
||||
- name: storage
|
||||
weekday: 0
|
||||
@@ -72,6 +81,18 @@ alerts_cron:
|
||||
job: "/usr/local/scripts/alerts.sh backup_vault >/dev/null 2>&1"
|
||||
cron_file: alerts
|
||||
|
||||
alerts_storage: scaleway
|
||||
alerts_load: scaleway
|
||||
alerts_ping: ovh
|
||||
alerts_health: scaleway
|
||||
alerts_backup_gitea: scaleway
|
||||
alerts_backup_vault: scaleway
|
||||
alerts_cpu: scaleway
|
||||
alerts_ssl: scaleway
|
||||
|
||||
##############
|
||||
# LOG ROTATE #
|
||||
##############
|
||||
|
||||
logrotate_scripts:
|
||||
- name: backup
|
||||
@@ -103,16 +124,6 @@ logrotate_scripts:
|
||||
- name: restart traefrik
|
||||
script: docker-compose restart traefrik
|
||||
|
||||
alerts_storage: scaleway
|
||||
alerts_load: scaleway
|
||||
alerts_ping: ovh
|
||||
alerts_health: scaleway
|
||||
alerts_backup_gitea: scaleway
|
||||
alerts_backup_vault: scaleway
|
||||
alerts_cpu: scaleway
|
||||
alerts_ssl: scaleway
|
||||
|
||||
|
||||
|
||||
##########
|
||||
# CHISEL #
|
||||
@@ -124,9 +135,19 @@ chisel_config_name: chisel-server
|
||||
chisel_server_host: 163.172.84.28
|
||||
chisel_server_port: 8080
|
||||
chisel_proxychains_conf:
|
||||
# chisel enable socks5
|
||||
- path: "/etc/chisel/{{ chisel_config_name }}"
|
||||
regexp: "^SOCK5=--sock5"
|
||||
regexp: "^SOCK5=--socks5"
|
||||
state: present
|
||||
# chisel enable reverse
|
||||
- path: "/etc/chisel/{{ chisel_config_name }}"
|
||||
regexp: "^PID=--reverse"
|
||||
state: present
|
||||
# chisel set up basic auth
|
||||
- path: "/etc/chisel/{{ chisel_config_name }}"
|
||||
regexp: "^AUTH=--auth {{ chisel_basic_auth }}"
|
||||
state: present
|
||||
# proxychains replace socks4 to socks5
|
||||
- path: "/etc/proxychains.conf"
|
||||
regexp: "^socks4 127.0.0.1 9050"
|
||||
state: "absent"
|
||||
|
||||
Reference in New Issue
Block a user