stuff
This commit is contained in:
parent
c8754e1bdc
commit
fbbeb59c0e
28 changed files with 907 additions and 995 deletions
|
|
@ -181,49 +181,16 @@ ntfy-emergency-app is a simple web application that allows trusted people to sen
|
|||
|
||||
### Deploy
|
||||
|
||||
* Decide what subdomain you want to serve the emergency app on and add it to `services/ntfy-emergency-app/ntfy_emergency_app_vars.yml` on the `ntfy_emergency_app_subdomain`.
|
||||
* Decide what subdomain you want to serve the emergency app on and update `ansible/services_config.yml` under `ntfy_emergency_app`.
|
||||
* Note that you will have to add a DNS entry to point to the VPS public IP.
|
||||
* Configure the ntfy settings in `ntfy_emergency_app_vars.yml`:
|
||||
* `ntfy_emergency_app_topic`: The ntfy topic to send messages to (default: "emergency")
|
||||
* `ntfy_emergency_app_ntfy_url`: Your ntfy server URL (default: "https://ntfy.sh")
|
||||
* `ntfy_emergency_app_ntfy_user`: Username for ntfy authentication (optional)
|
||||
* `ntfy_emergency_app_ntfy_password`: Password for ntfy authentication (optional)
|
||||
* `ntfy_emergency_app_ui_message`: Custom message displayed in the web interface
|
||||
* Ensure `infra_secrets.yml` contains `ntfy_username` and `ntfy_password` with the credentials the app should use.
|
||||
* Make sure docker is available on the host.
|
||||
* Run the deployment playbook: `ansible-playbook -i inventory.ini services/ntfy-emergency-app/deploy_ntfy_emergency_app_playbook.yml`.
|
||||
|
||||
|
||||
## Personal Blog
|
||||
|
||||
Personal blog is a static website served directly by Caddy.
|
||||
|
||||
### Deploy
|
||||
|
||||
* Decide what subdomain you want to serve the blog on and add it to `services/personal-blog/personal_blog_vars.yml` on the `personal_blog_subdomain`.
|
||||
* Note that you will have to add a DNS entry to point to the VPS public IP.
|
||||
* Configure the git repository settings in `personal_blog_vars.yml`:
|
||||
* `personal_blog_git_repo`: The HTTPS URL to your git repository (default: "https://forgejo.contrapeso.xyz/counterweight/pablohere.git")
|
||||
* `personal_blog_source_folder`: The folder within the repo containing static files (default: "public")
|
||||
* Set up a Forgejo deploy token:
|
||||
* Go to your repository → Settings → Deploy Tokens
|
||||
* Create a new token with "Read" permissions
|
||||
* Copy the token (you won't see it again)
|
||||
* Export the token as an environment variable: `export PERSONAL_BLOG_DEPLOY_TOKEN=your_token_here`
|
||||
* Run the deployment playbook: `ansible-playbook -i inventory.ini services/personal-blog/deploy_personal_blog_playbook.yml`.
|
||||
|
||||
### Configure
|
||||
|
||||
* The blog will be automatically updated every hour via a cron job that pulls the latest changes from the git repository.
|
||||
* Static files are served directly by Caddy from the configured webroot directory.
|
||||
* No additional configuration is needed - the site will be available at your configured domain.
|
||||
|
||||
### Updating content
|
||||
|
||||
* Simply push changes to the `master` branch of your git repository.
|
||||
* The cron job will automatically pull and deploy updates within an hour.
|
||||
* For immediate updates, you can manually run: `/usr/local/bin/update-personal-blog.sh` on the server.
|
||||
|
||||
|
||||
## Headscale
|
||||
|
||||
Headscale is a self-hosted Tailscale control server that allows you to create your own Tailscale network.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue