添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

1. The problem I’m having:

All I want in the world is to set Caddy up to support my Jellyfin. I’m doing the install and everything through Docker, and I think I’m 80% there. I have Caddy installed, Jellyfin installed, website domain registered, etc. But. When I go to my domain, I get the crooked 'Hello! Your web server is working, now… etc" Caddy screen telling me to ‘upload your site’s files to /var/www/html,’ and honestly I’m just stuck.

2. Error messages and/or full log output:

There’s no direct error message, it appears to be running. The issue comes when trying to access my site.

3. Caddy version:

2.7.6

4. How I installed and ran Caddy:

I installed Caddy through Docker-Compose.

a. System environment:

Docker via Windows.

b. Command:

So as far as I can tell, Caddy is running- it just isn’t actually connecting to my site fully. It isn’t an issue of typing in the wrong command (as far as I know) but more an issue with configuration. I’ve compared five different guides, but often guides are for Linux or don’t specify what I’m having an issue with.
In the guides (for example the one linked below), the tutorial typically instructs you to create different folders or directories. However, Caddy also says on the ‘Your Web Server is Working’ page to upload files to /var/www/html .
I know this is probably a silly question, but I’m brand-new to coding and programming and everything like this-- do I create a var folder, a www folder, an html folder? I don’t understand why the tutorial didn’t tell me that-- unless it exists somewhere that I don’t know of? Additionally, the Caddy Web Server page states to ‘upload your site files’ to that location. What site files? It’s Jellyfin, it’s another service.
I’m so sorry, I’m sure this is so simple, but I just do not understand what I’m missing and I have twenty tabs open but haven’t found a single guide or forum that addressed this (for me) blind spot. I imagine that once I fix whatever this is with the /var thing, then my website will load correctly, I just don’t know how to get to that.

c. Service/unit/compose file:

Docker

d. My complete Caddy config:

DOMAINNAME {
    root * /wdata
    file_server
	encode gzip
	php_fastcgi unix//run/php/php-version-fpm.sock
	file_server
reverse_proxy other-container:8080

d. My docker-compose yml:

version: '2.24.5-desktop.1'
name: caddy
services:
  caddy:
    container_name: caddy
    image: caddy
    restart: always
    ports:
      - '80:80'
      - '443:443'
    volumes:
      - caddy-config:/config
      - caddy-data:/data
      - ./Caddyfile:/etc/docker-caddy/Caddyfile
      - ./index.html:/docker-caddy/wdata/index.html
volumes:
  caddy-config:
  caddy-data:

5. Links to relevant resources:

This is the guide I’ve been following most closely, although I used another to set Caddy up via Docker-compose: