[BUG] Quadlet curl vs nginx behavior
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- docker, dockerfile, linux, nginx
- Domain
- devops, networking
Research direction
The failing piece is the proxy_pass $upstream_proto://$upstream_app:$upstream_port; line in the nginx site config, where realhost does not resolve inside the SWAG container while curl realhost:8080 works. Start by comparing name resolution inside the container (getent hosts realhost, /etc/hosts, /etc/resolv.conf) with the Quadlet unit that sets Network=host. Done means finding why nginx resolves the name differently and either fixing the configuration or documenting the workaround; the issue does not yet state a required change.
Written by the indexing model from the issue text.
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
When running on a machine called "realhost", executing curl realhost:8080 nets the correct webpage.
But when nginx is told to connect to realhost:8080 using the below configuration it fails. Replacing realhost with 127.0.0.1 works properly. This is running with network mode = host.
set $upstream_app realhost;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
Expected Behavior
if curl can resolve and get the webpage then so should nginx.
Steps To Reproduce
- Run with a podman quadlet:
- Enter container. Run curl targeting hostname that container is running on
- use the same hostname in curl. Fails
- use 127.0.0.1 instead of hostname or localhost. Works
Environment
- OS: Debian 13
- How docker service was installed: sudo apt install podman
CPU architecture
x86-64
Docker creation
[Unit]
Description=SWAG container.
Wants=network-online.target
After=network-online.target
[Container]
Image=lscr.io/linuxserver/swag:latest
ContainerName=swag
AutoUpdate=registry
Network=host
AddCapability=NET_ADMIN
Environment=TZ=Europe/Amsterdam
Environment=URL=maindomain.tld
Environment=EXTRA_DOMAINS=*.domain.tld
Environment=VALIDATION=dns
Environment=SUBDOMAINS=wildcard
Environment=DNSPLUGIN=provider
Environment=SWAG_AUTORELOAD=true
Environment=DOCKER_MODS=linuxserver/mods:swag-dashboard
Volume=/srv/swag:/config:Z
LogDriver=journald
[Service]
Restart=always
ExecStartPre=mkdir -p /srv/swag
[Install]
WantedBy=default.target
Container logs
[mod-init] Running Docker Modification Logic
[mod-init] Adding linuxserver/mods:swag-dashboard to container
[mod-init] Downloading linuxserver/mods:swag-dashboard from lscr.io
[mod-init] Installing linuxserver/mods:swag-dashboard
[mod-init] linuxserver/mods:swag-dashboard applied to container
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-swag-old-certbot-paths: skipped
[migrations] done
usermod: no changes
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support the app dev(s) visit:
Certbot: https://supporters.eff.org/donate/support-work-on-certbot
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 911
User GID: 911
───────────────────────────────────────
Linuxserver.io version: 5.8.0-ls489
Build-date: 2026-10-10T09:44:35+00:00
───────────────────────────────────────
using keys found in /config/keys
**** The following active confs have different version dates than the samples that are shipped. ****
**** This may be due to user customization or an update to the samples. ****
**** You should compare the following files to the samples in the same folder and update them. ****
**** Use the link at the top of the file to view the changelog. ****
┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐
│ old date │ new date │ path │
├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤
│ 2025-06-08 │ 2026-09-08 │ /config/nginx/tinyauth-server.conf │
│ 2025-12-17 │ 2026-07-19 │ /config/nginx/tinyauth-location.conf │
└────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘
Variables set:
PUID=
PGID=
TZ=Europe/Amsterdam
URL=maindomain.tld
SUBDOMAINS=wildcard
EXTRA_DOMAINS=*.domain.tld
ONLY_SUBDOMAINS=false
VALIDATION=dns
CERTPROVIDER=
CERT_PROFILE=
DNSPLUGIN=provider
EMAIL=
STAGING=
Using Let's Encrypt as the cert provider
SUBDOMAINS entered, processing
Wildcard cert for maindomain.tld will be requested
EXTRA_DOMAINS entered, processing
Extra domains processed are: domain.tld
No e-mail address entered or address invalid
dns validation via transip plugin is selected
Certificate exists; parameters unchanged; starting nginx
The cert does not expire within the next day. Letting the cron script handle the renewal attempts.
**** Applying the SWAG dashboard mod... ****
**** Adding goaccess to package install list ****
**** libmaxminddb already installed, skipping ****
**** Applied the SWAG dashboard mod ****
[pkg-install-init] **** Installing all mod packages ****
(1/1) Installing goaccess (1.10.2-r0)
Executing busybox-1.37.0-r31.trigger
OK: 207.6 MiB in 219 packages
[custom-init] No custom files found, skipping...
Auto-reload: Watching the following folders for changes to .conf files:
/config/nginx
[ls.io-init] done.
2026/10/15 13:24:28 [warn] 858#858: conflicting server name "_" on 0.0.0.0:443, ignored
2026/10/15 13:24:28 [warn] 858#858: conflicting server name "_" on [::]:443, ignored
Server ready
- Dominant language
- Dockerfile
- Stars
- 3.8k
- Forks
- 276
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from linuxserver/docker-swag
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
linuxserver/docker-swag#631 · 3 comments ·
-
[BUG] Nginx keeps serving the self-signed certificate after the first validation when VALIDATION=httpPossibly taken @atsidaev claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
linuxserver/docker-swag#638 · 4 comments ·
-
Difficulty 4/5 1-2 days Newbie friendliness 25/100
linuxserver/docker-swag#636 · 1 comment ·
-
[BUG] Anonymous Authelia redirects can overwrite a newer login sessionPossibly taken @MeiXu6693 claimed this 33 days ago. Openno-issue-activity
Difficulty 3/5 1-2 days Newbie friendliness 48/100
linuxserver/docker-swag#634 · 2 comments ·
-
[BUG] "chmod: changing permissions of '/XXX': Bad address" error message (QNAP)May be free again A pull request for this issue was closed without being merged. Openbug upstream issue work-in-progress
Difficulty 4/5 3-5 days Newbie friendliness 45/100
linuxserver/docker-swag#514 · 75 comments ·
All issues in linuxserver/docker-swag
Similar issues
-
canary-dead
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
activescott/home-infra-k8s-flux#578 ·
Maintainers usually reply within 1 day
-
repo-harnesses: the entrypoint-guard check greps a message `#13692` reworded, so it fails on mainOpen
Difficulty 1/5 Under an hour Newbie friendliness 88/100
daniel-ospina/tortoise#14947 ·
Maintainers usually reply within 1 day
-
area: infra tier: p3 type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
flashinfer-ai/flashinfer#10251 ·
Maintainers usually reply within 1 day