Commit graph

89 commits

Author SHA1 Message Date
86dd20fbf0
Remove some services from default deployment
Services I have not used or not used for a long time will now not be
deployed by default (but could still be specifically targeted through
tags).
2024-06-24 20:51:40 +02:00
b3f201ed7d
Pin exact caddy version
Stay on the exact version unless it is specifically told to upgrade.
This is a first-step workaround for the (non-)idempodency issue of the
caddy container's json config injection.
2024-06-24 20:50:58 +02:00
c498b3ced8
Apply prettier formatting 2024-06-24 20:36:55 +02:00
6b4c4ccde4
Update dependencies to enable easy single-tag deployments
Previously every deployment (even just for a single tag, such as
`ansible-playbook site.yml --tags landingpage`) would have the caddy
deployment in its dependency.

That meant in effect whenever there was an updated caddy image, the role
would update it and we would lose all previous caddy configuration -
which in turn would necessitate a complete redeploymnet of all steps.
This is now not the case anymore.
2024-06-24 20:24:04 +02:00
3171aa5ead
Make zerossl usage depend on having an api key 2024-06-24 18:56:37 +02:00
9ec5b6dec6
Switch site playbook to use forgejo 2024-06-24 18:30:34 +02:00
648f49a847
Move from gitea to forgejo
Moved all variables over; moved git passthrough script to new location
and naming scheme; moved settings and mentions of gitea name; switched
ci woodpecker instance to use forgejo instead of gitea.
2024-06-24 18:17:01 +02:00
b6e30811dc
Fix shaarli version and image source
Shaarli images moved a while ago and received a different tag naming scheme.
So we changed to the new repository and renamed the version from latest
to release.
2024-04-11 13:08:06 +02:00
b3d84b6075
Set Nextcloud php upload limit to 2GB 2024-04-11 13:07:22 +02:00
38b32a66e5
Reduce gitea healthy-await delay
We waited for 60 seconds previously which is exactly when the
supplied ssh key would disappear in my setup. So instead we
wait for slightly shorter (55 seconds) to ease this for me.
2024-04-11 13:07:10 +02:00
7fb14b07a8
Remove nextcloud db readiness check
We instead just wait for the db to be up with the usual docker
wait commands. A little more brittle but the old method ceased
to work.
2024-04-11 13:06:10 +02:00
ff49856107
Pint Nextcloud to current stable version 2024-04-11 13:05:15 +02:00
948ca7517a
Always update docker requirements to latest versions 2024-04-11 13:05:01 +02:00
d3f65a07fb
Fix wget healthchecks to not use localhost
For a reason, current wget versions error out when using localhost instead
of 127.0.0.1 as the healthcheck for docker services. Probably has something
to do with dns resolution - either on docker or wget end, but have not
looked to deep into it.
2024-04-11 13:04:28 +02:00
bc7796710a
Pin Nextcloud version to current stable release 2023-12-08 22:50:01 +01:00
26cceccfd9
Update Nextcloud internal Caddyfile
Add suggested security improvements and static file
caching.
2023-12-08 22:49:43 +01:00
388a1d8cfc
Separate caddy container id grabbing into own role
Since other roles often rely on this not an actual new caddy server
installation we should probably have it as its own little role.
2023-12-08 20:35:51 +01:00
a52cab2f61
Refactor wallabag stack name and repo variables
Brought in line with other stack naming schemes.
2023-12-08 20:34:41 +01:00
9cf43d0d5d
Fix new stat module checksum option
In the module get_md5 has been replaced by get_checksum.
2023-12-08 20:34:07 +01:00
d4dbeb4eb4
Improve gitea stability on first launch
When launching many containers gitea admin waiting still sometimes gets stuck.
This should provide a bandaid for now. Also improve the container detection.
2023-12-08 20:31:15 +01:00
2d01350fa5
Switch to new landingpage and remove old blog
New landingpage includes the blog itself to better
integrate with the main page. Also runs on astro
not on hugo which I am a little more familiar with.
2023-12-08 20:28:44 +01:00
7d8408f9f8
Change become arguments to boolean
Changed all 'become: ' values from 'yes' to 'true' to satisfy the schema
(and also make the lsp shut up).
2022-12-18 16:02:32 +01:00
385cb3859c
Remove whoami from default site playbook
whoami should be used as a test and debugging container and should not
be necessary or used for production deployment.
2022-12-18 15:53:26 +01:00
1ceee17eda
Add local test setup to ignored files 2022-12-18 15:50:23 +01:00
926f1f475f
Fix ntfy settings
Fixed numeric settings for ntfy and a corrected command executed.
2022-12-18 15:47:14 +01:00
8aaefd3f60
Fix gitea admin deployment to be less brittle
Admin deployment was very timing-dependent: If the server took a while
to set it up, it would always error out while deploying. This commit
adds sufficient grace-time into the admin request call before the error
occurs which should avoid it in most deployments (unless the server is
severely underpowered or over-taxed).

Also fixes admin creation to avoid root usage in the container when it
is not called for.
2022-12-18 12:00:33 +01:00
32b1b13ef4
Add ntfy role
Installs and configures the ntfysh server to enable notifications.
2022-01-23 20:00:47 +01:00
1e0643352d
Fix gitea admin setup, Add healthcheck
Added healthcheck to gitea database contaier.

Fixed initial admin setup checks - uses correct in-container user and
fixed fail checks.
2022-01-22 10:48:31 +01:00
06bb34891e
Add simple ci deployment 2021-12-22 18:02:18 +01:00
3ee003f94c
Fix blog upstream setting
Removed setting the landingpage upstream accidentally, switched its
alias to blog instead.
2021-12-19 10:09:25 +01:00
3a5b5680cf
Add gitea role
Added base gitea docker setup role.

Adds automatic unattended setup with default admin account and optional
email notification setup.
2021-12-13 15:27:30 +01:00
12a3fa1e6f
Fix wallabag root url setting for aliases 2021-12-10 16:32:20 +01:00
86346c04dd
Add strict security headers to nextcloud 2021-12-09 23:47:28 +01:00
b058cd1ace
Fix site.yml tagging
Now correctly tags each individual task instead of just the
empty role itself.
2021-12-09 16:01:49 +01:00
b393c0b946
Switch local testing to subdomain model
Requires manual setup through hosts file or dns server for now.
2021-12-09 16:00:39 +01:00
c5eac2a846
Replace dev playbook with tagged site playbook
Removed the `site-dev.yml` playbook in favor of tagging all included
roles in the main playbook. This way there are no 2 playbooks to keep
manually in sync and the specific roles can still be run just like from
the dev playbook by invoking the intended roles through `--tag myrole`
or `--skip-tags myskippedrole`.
2021-12-09 11:42:54 +01:00
acc9638cfd
Switch searx to searxng by default 2021-12-09 11:12:45 +01:00
02a16ae5bc
Switch deployment server from stable to prod group 2021-12-09 08:48:52 +01:00
ee44506186
Add blog deployment 2021-11-22 13:36:29 +01:00
ab67fa16c8
Add landingpage deployment 2021-11-21 23:20:05 +01:00
b75e5e58c6
Add basic shaarli deployment 2021-11-21 21:20:26 +01:00
f2e709590b
Add basic nextcloud deployment
Uses php-fpm image and is served through a simple caddy server.
Automatically deploys by default and can be automatically deployed with
smtp e-mail sending and s3 primary object storage optionally if desired.

Utilizes some necessary hackery for container ordering and startup so
startup is relatively slow (takes around 2-5 minutes at least) but once
running should be stable and uninterrupted.

Implements health-checks for all involved containers.

Switch apache for php-fpm image
2021-11-20 14:23:57 +01:00
f2d85471b2
Merge branch 'feat/add-monica' 2021-10-26 18:12:52 +02:00
6c2fc110b7
Update README
Added simple deployment information.
2021-10-26 18:12:33 +02:00
010d8f93c4
Add monica deployment
Added basic monica docker deployment.

A key which is required for monica is automatically generated on
deployment.
Optionally, geolocation and weather api can be enabled.
Mail-sending functionality is disabled by default but can be enabled
with any compatible smtp server set up.
2021-10-26 18:11:48 +02:00
3f944df048
Add traggo deployment 2021-10-24 10:55:46 +02:00
d41763f0dc
Fix default searx authentication setup 2021-10-23 22:15:06 +02:00
8e4c842ea9
Merge branch 'feat/add-searx' 2021-10-23 22:06:13 +02:00
3b27a5222a
Allow multiple basic auth accounts to be configured 2021-10-23 22:02:48 +02:00
4b440ec9b5
Add basic auth to searx 2021-10-23 20:35:56 +02:00