0
0
opnxng-deploy-playbook/README.md

25 lines
1.4 KiB
Markdown
Raw Normal View History

2023-11-11 21:15:57 +08:00
# Ansible playbook for Opnxng deployment
2023-11-06 10:39:27 +08:00
2023-11-11 21:15:57 +08:00
An Ansible playbook to deploy Docker services to our servers and another to back up important data.
2023-11-06 10:39:27 +08:00
2023-11-13 20:27:07 +08:00
`ansible-playbook -i "production" "deploy.yaml"`
2023-11-06 10:39:27 +08:00
2023-11-13 20:27:07 +08:00
`ansible-playbook -i "production" "back-up.yaml"`
2023-11-11 21:15:57 +08:00
2023-11-06 10:39:27 +08:00
## Services
2023-11-13 20:27:07 +08:00
The services are hosted on one Vultr and four Oracle servers. A [variables file](vars/services.yaml) defines the services to be deployed or already deployed.
2023-11-06 10:39:27 +08:00
They are deployed with [Compose files](templates/compose) and load balanced according to the [Caddyfile](templates/conf/Caddyfile.j2).
## Configurations
2023-11-22 08:37:19 +08:00
Our SearXNG instance uses a custom [settings.yml](templates/conf/settings.yml.j2) that always include upstream changes. It is updated by hand with reference to [Pussthecat.org's configuration](https://github.com/PussTheCat-org/PussTheCat.org-Configs/tree/master/Services/SearXNG). Thanks to [TheFrenchGhosty](https://github.com/PussTheCat-org).
2023-11-11 21:15:57 +08:00
2023-11-22 08:37:19 +08:00
Data of our Privatebin, Etherpad, and Gitea instances are backed up periodically.
2023-11-06 10:39:27 +08:00
2023-11-13 20:27:07 +08:00
Passwords and other sensitive data are kept locally as encrypted variables in [secrets.yaml](vars/secrets.example.yaml). We host an Authelia and Firefox stack that is restricted to specific users only. Their related files are also kept locally.
2023-11-06 10:39:27 +08:00
## Contact
2023-11-22 08:37:19 +08:00
Please contact us via [email](mailto:opnxng@tuta.io) if you discover any vulnerability or area for improvement in our infrastructure. We would truly appreciate it.