Mealie caddy server

1. Caddy version (caddy version):

v2.3.0.

2. How I run Caddy:

a. System environment:

Operating System: Ubuntu 18.04.4 LTS
Kernel: Linux 4.15.0-140-generic
Architecture: x86-64

b. Command:

caddy start

c. Service/unit/compose file:

[Unit]
Description=Caddy
Documentation=https://caddyserver.com/docs/
After=network.target network-online.target
Requires=network-online.target

[Service]
User=caddy
Group=caddy
ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile
ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512
PrivateTmp=true
ProtectSystem=full
AmbientCapabilities=CAP_NET_BIND_SERVICE

[Install]
WantedBy=multi-user.target

d. My complete Caddyfile or JSON config:

a******.d***********.net  {
    root * /var/www/organizr.local/html
    php_fastcgi unix//run/php/php8.0-fpm.sock
    rewrite /api/v2/* /api/v2/index.php?{query}
    file_server 
reverse_proxy /ombi* 127.0.0.1:5000
reverse_proxy /tautulli* 127.0.0.1:8181
reverse_proxy /nzbget* 127.0.0.1:6789
reverse_proxy /transmission* 127.0.0.1:9091
reverse_proxy /nzbhydra2* 127.0.0.1:5076
reverse_proxy /radarr* 127.0.0.1:7878
reverse_proxy /jackett* 127.0.0.1:9117
reverse_proxy /bazarr* 127.0.0.1:6767
reverse_proxy /sonarr* 127.0.0.1:8989
reverse_proxy /calibre-web* http://localhost:8083 {
header_up X-Script-Name /calibre-web
}
}

3. The problem I’m having:

I want to run mealie via caddy. GitHub - hay-kot/mealie: Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor,

There is a caddyfile on github but it is for docker compose. But i have installed it manually without docker. So i cant start it with that caddyfile.

4. Error messages and/or full log output:

5. What I already tried:

6. Links to relevant resources:

https://hay-kot.github.io/mealie/getting-started/install/

mealie.myhost.name {
    tls email@email.com
    log {
            output file /var/log/caddy/mealie.log {
                    roll true # Rotate logs, enabled by default
                    roll_size_mb 5 # Set max size 5 MB
                    roll_gzip true # Whether to compress rolled files
                    roll_local_time true # Use localhost time
                    roll_keep 2 # Keep at most 2 log files
                    roll_keep_days 7 # Keep log files for 7 days
                    level error
            }
    }
    reverse_proxy 127.0.0.1:5000

}

Hazarding an answer. Change the host name, email address for tls & port that you’re forwarding.

1 Like

It didnt work. Thanks anyway.