mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-11-20 00:07:07 +08:00
|
|
||
|---|---|---|
| .. | ||
| caddy.json | ||
| readme.md | ||
Caddy with geoblocking
This container bundles caddy and auto-configures it for you. It also covers https://github.com/nextcloud/all-in-one/tree/main/community-containers/vaultwarden by listening on bw.$NC_DOMAIN, if installed.
Notes
- Make sure that no other service is using port 443 on your host as otherwise the containers will fail to start. You can check this with
sudo netstat -tulpn | grep 443before installing AIO. - Make sure that you point
bw.your-nc-domain.comto your server using a cname record so that caddy can get a certificate automatically for vaultwarden. - After the container was started the first time, you should see a new
nextcloud-aio-caddyfolder and inside there anallowed-countries.txtfile when you open the files app with the defaultadminuser. In there you can adjust the allowed country codes for caddy by adding them to the first line, e.g.IT FRwould allow access from italy and france. Private ip-ranges are always allowed. Additionally, in order to activate this config, you need to get an account at https://dev.maxmind.com/geoip/geolite2-free-geolocation-data and download theGeoLite2-Country.mmdband upload it with this exact name into thenextcloud-aio-caddyfolder. Afterwards restart all containers from the AIO interface and your new config should be active! - See https://github.com/nextcloud/all-in-one/tree/main/community-containers how to add it to the AIO stack
Repository
https://github.com/szaimen/aio-caddy