szaimen / aio-caddy Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
If you have stalwart mail in the stack, the first time you stop docker service (or reboot the box) the detection just goes fine. But when you do for the second time, caddy keeps restarting.
I've found a solution, changing the detection of stalwart in start.sh
I've changed line 53
if [ -n "$(dig A +short nextcloud-aio-stalwart)" ] && ! grep -q "mail.$NC_DOMAIN" /Caddyfile; then
by
if [ -n "$(dig A +short nextcloud-aio-stalwart)" ] && ! grep -q "mail.{$NC_DOMAIN}" /Caddyfile; then
As the Caddyfile is in the container, everytime it is updated any added services would be overwritten.
Please have the Caddyfile created in /data i.e. nextcloud-aio-caddy
Im not 100% sure, but I think there is missing directive in file start.sh
reverse_proxy nextcloud-aio-stalwart:8080
There is a new port number for web admin interface from version Stalwart mail 0.7.
Always update the container when a new alpine version was merged
See #7
If we have something else running on our server besides AIO, it might be interesting to allow the aio-caddy container to import rules from users. Perhaps we could mount a volume pointing to the local $PWD/caddy
directory where users can add some Caddy files, and then the start.sh
script can import them into the Caddyfile.
I'm new to Caddy, but I think this is something that's possible.
I just want your opinion before making any PR. This could allow users to easily set up Caddy with automatic reverse proxies for other community containers without needing to set up a reverse proxy for Nextcloud AIO just to add other rules.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.