Giter VIP home page Giter VIP logo

aio-caddy's People

Contributors

airopi avatar dependabot[bot] avatar docjyj avatar hgterra avatar kri164 avatar szaimen avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

aio-caddy's Issues

caddy container kepps restarting if stalwart container is in the stack

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

Stalwart-mail config

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.

Allow to setup custom caddy rules

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.