Trouble with subdomains

Current config: compose.yaml
ENTE_API_ORIGIN: http://ente.home
ENTE_API_ORIGIN: http://ente.home
museum.yaml (for each S3 bucket)
endpoint: http://minio-api.ente.home
endpoint: http://minio-api.ente.home
Nginx Proxy Manager (all local domains, nothing exposed to the internet & therefore no SSL; all are enabled)
ente.home = http://<server_name>.home:8080
photos.ente.home = http://<server_name>.home:3000
minio-api.ente.home = http://<server_name>.home:3200
minio-console.ente.home = http://<server_name>.home:3201 (this one never gets specified in any configs that I've seen though, and I've never been able to access this in a web browser through any means)
ente.home = http://<server_name>.home:8080
photos.ente.home = http://<server_name>.home:3000
minio-api.ente.home = http://<server_name>.home:3200
minio-console.ente.home = http://<server_name>.home:3201 (this one never gets specified in any configs that I've seen though, and I've never been able to access this in a web browser through any means)
Pi-hole local DNS records
<server_name> -> <server_ip>
*.ente.home -> <server_name>
ente.home -> <server_name>
<server_name> -> <server_ip>
*.ente.home -> <server_name>
ente.home -> <server_name>
Everything was working fine when I had http://ente.home pointed to http://<server_name>.home:3000 in NPM and all the Ente config was just http://<server_name>.home:<port>. I want to pretty everything up with subdomains though. For vanity, I guess. With the above specified config, http://photos.ente.home doesn't load at all (immediate "can't connect" message in browser). When I tried the following commands
docker exec -it my-ente-minio-1 sh
mc alias set b2-eu-cen http://minio-api.ente.home <minio_user> <minio_pw>
mc admin config set b2-eu-cen api cors_allow_origin="*"
docker exec -it my-ente-minio-1 sh
mc alias set b2-eu-cen http://minio-api.ente.home <minio_user> <minio_pw>
mc admin config set b2-eu-cen api cors_allow_origin="*"
it failed on the second line, saying
mc: <ERROR> Unable to initialize new alias from the provided credentials. Get "http://minio-api.ente.home/probe-bsign-<string>/?location=": dial tcp: lookup minio-api.ente.home on 127.0.0.11:53: no such host.
mc: <ERROR> Unable to initialize new alias from the provided credentials. Get "http://minio-api.ente.home/probe-bsign-<string>/?location=": dial tcp: lookup minio-api.ente.home on 127.0.0.11:53: no such host.
If I switched it to http://<server_name>.home:3200 instead of http://minio-api.ente.home, it executed fine, but didn't solve the issue of getting CORS failures. Does anyone have advice on how to properly set this up so that I can use subdomains to make this look prettier for an end-user?
6 Replies
Ducky
Ducky5mo ago
I'm sorry, I couldn't find the answer in the documentation. -# If your issue is resolved, you can use the Mark as Solved button or type /solved to close the thread. <@&1364141260708909117> User still needs help in #Trouble with subdomains
First Thunder
First Thunder5mo ago
1st, is the server pointing towards the correct domain? like, if you do a
dig hostname
dig hostname
inside the server, does it give back the correct IP?
Ria
RiaOP5mo ago
turns out I'm just dumb. I assumed pihole could map wildcard subdomains (*.ente.home), but it can't, so I specified each one and mapped them to <server_name>, and it works now without having touched any of the Ente config again. ugh, sorry y'all
Ducky
Ducky5mo ago
Thread marked as solved. It will be closed in <t:1749995935:R>.
First Thunder
First Thunder5mo ago
ah oof
Ducky
Ducky5mo ago
This thread is now closed.

Did you find this page helpful?