Hi!
I tried and tried but unfortunately I can't get to any solution.
I'd like to be able to reach 192.168.0.3:8096 via http://jellyfin.local or just http://jellyfin and 192.168.0.3:8181 via https://firefly.local . How can I achieve this?
Regards
Hi!
I tried and tried but unfortunately I can't get to any solution.
I'd like to be able to reach 192.168.0.3:8096 via http://jellyfin.local or just http://jellyfin and 192.168.0.3:8181 via https://firefly.local . How can I achieve this?
Regards
Nothing?
A bit more input on HOW you're running jellyfin will help.
You can use SWAG via docker to reverse-proxy it.
I'm running everything (except nginx of course) via docker.
I'm running everything (except nginx of course) via docker.
use docker swag to do a reverse proxy that is what yiu are asking for.
Hm... I have tried it with Swag but can't seem to figure it out. Is there some tutorial for dummies out there?
I just want to have local subdomains for miscellaneous docker containers (also Firefly needs https), so that only devices in my home network are able to reach them.
post more info and we can write a yaml file so you can deploy a stack in portainer.
or search forum about portainer & stack
What info in particular are you referring to?
I'm running everything (except nginx of course) via docker.
I have a container with Nginx in docker, and it works perfectly
My config is:
version: '3'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
container_name: nginx-proxy
restart: always
ports:
- '8484:80'
- '8485:81'
- '8443:443'
environment:
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "npm"
DB_MYSQL_PASSWORD: "MY_PASSWORD"
DB_MYSQL_NAME: "npm"
volumes:
- /srv/dev-disk-by-label-DATI/AppData/Nginx/config:/data
- /srv/dev-disk-by-label-DATI/AppData/Nginx/letsencrypt:/etc/letsencrypt
db:
image: 'jc21/mariadb-aria:10.4'
container_name: nginx-database
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'MY_PASSWORD'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'MY_PASSWORD'
volumes:
- /srv/dev-disk-by-label-DATI/AppData/Nginx/database:/var/lib/mysql
Alles anzeigen
Then, inside the router (I have a AVM Fritzbox 7590) you have to expose 2 ports: 80 and 443
In my case the ports are:
EXTERNAL: 80
INTERNAL: 8484
EXTERNAL: 443
INTERNAL: 8443
The finale result, in Nginx, is like in the attachment.
Alles anzeigenI have a container with Nginx in docker, and it works perfectly
My config is:
CodeAlles anzeigenversion: '3' services: app: image: 'jc21/nginx-proxy-manager:latest' container_name: nginx-proxy restart: always ports: - '8484:80' - '8485:81' - '8443:443' environment: DB_MYSQL_HOST: "db" DB_MYSQL_PORT: 3306 DB_MYSQL_USER: "npm" DB_MYSQL_PASSWORD: "MY_PASSWORD" DB_MYSQL_NAME: "npm" volumes: - /srv/dev-disk-by-label-DATI/AppData/Nginx/config:/data - /srv/dev-disk-by-label-DATI/AppData/Nginx/letsencrypt:/etc/letsencrypt db: image: 'jc21/mariadb-aria:10.4' container_name: nginx-database restart: always environment: MYSQL_ROOT_PASSWORD: 'MY_PASSWORD' MYSQL_DATABASE: 'npm' MYSQL_USER: 'npm' MYSQL_PASSWORD: 'MY_PASSWORD' volumes: - /srv/dev-disk-by-label-DATI/AppData/Nginx/database:/var/lib/mysql
Then, inside the router (I have a AVM Fritzbox 7590) you have to expose 2 ports: 80 and 443
In my case the ports are:
EXTERNAL: 80INTERNAL: 8484
EXTERNAL: 443
INTERNAL: 8443
The finale result, in Nginx, is like in the attachment.
However, as far as I can tell (DuckDNS), this is not local. I only want local subdomains that are working without the internet.
OK, I missed the "local" part, my bad.
You'll need to edit the "hosts" file but this only redirects to port 80:
On Windows, run a CMD as administrator and then notepad c:\Windows\System32\drivers\etc\hosts:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
# OpenMediaVault Local
192.168.0.102 omv.local # This will open when writing "http://omv.local" on the browser if the port is standard 80
Alles anzeigen
On Linux, I think it´s on /etc/hosts (NOT sure since I don't have a Linux RIG atm)
As I said, it only works for apps that run on the standard ports (80 for http and 443 for https).
If you run on different ports (which is your case) you can bypass it on Windows. (read this):
Using the hosts file on Windows with ports | Adventures of a space monkey (nidkil.me)
Using port number in Windows host file - Stack Overflow
For Linux, you'll have to dig your GoogleFU (as I did for Windows),
I'm still looking for a solution.
I'm still looking for a solution.
I´m still waiting your data to write a stack to you
I´m still waiting your data to write a stack to you
And as I said: What data/info?
Hm... I have tried it with Swag but can't seem to figure it out. Is there some tutorial for dummies out there?
I just want to have local subdomains for miscellaneous docker containers (also Firefly needs https), so that only devices in my home network are able to reach them.
ok, this is a sample swag stack, that you can modify for your needs.
version: 2
networks:
default:
external:
name: my-net
services:
swag:
image: linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1001
- PGID=1000
- TZ=Europe/Madrid
- URL=unwohltaeter
- SUBDOMAINS=emby,jellyfin,heimdall,firefly,pihole,portainer,transmission,netdata
- VALIDATION=http
# - DNSPLUGIN=cloudflare #optional
- DUCKDNSTOKEN=<token> #put your uckDNS token here
- EMAIL=unwohltaeter@gmail.com #optional
- DHLEVEL=2048 #optional
- ONLY_SUBDOMAINS=true #optional
#- EXTRA_DOMAINS=<extradomains> #optional
- STAGING=false #optional
volumes:
- /srv/dev-disk-by-label-Data/Data/Dockers/swag:/config
ports:
- 450:443
- 90:80 #optional
restart: unless-stopped
Alles anzeigen
some notes:
my-net is my default network docker ( is usefull to have all dockers in same network to use name resollution in docker, so you can refer dockers by name ), to use it, you need to create it first (docker network create my-net) from CLI
1 - You need to redirect in your router external port 443 to your NAS IP:450 and external port 80 to yourNAS_IP:90
2- you need to create a DuckDNS account so it can resolve your public IP to a name , EG: unwohltaeter
this permit to use URL like https://unwohltaeter.duckdns.org/firefly or https://unwohltaeter.duckdns.org/jellyfin
3 - use your own config path, mine is: - /srv/dev-disk-by-label-Data/Data/Dockers/swag:/config
4 - and finally , you need to edit files on /config/nginx/proxy_confs to configure your reverse proxy
more info on: https://docs.linuxserver.io/images/docker-swag
https://hub.docker.com/r/linuxserver/swag
my first time I do not know how swag works and take 4 weeks of test ( trial & errors) to make it work, now I can deploy it in seconds, and can add new services in seconds, only need to edit the stack and restart swag docker
Alles anzeigenok, this is a sample swag stack, that you can modify for your needs.
CodeAlles anzeigenversion: 2 networks: default: external: name: my-net services: swag: image: linuxserver/swag container_name: swag cap_add: - NET_ADMIN environment: - PUID=1001 - PGID=1000 - TZ=Europe/Madrid - URL=unwohltaeter - SUBDOMAINS=emby,jellyfin,heimdall,firefly,pihole,portainer,transmission,netdata - VALIDATION=http # - DNSPLUGIN=cloudflare #optional - DUCKDNSTOKEN=<token> #put your uckDNS token here - EMAIL=unwohltaeter@gmail.com #optional - DHLEVEL=2048 #optional - ONLY_SUBDOMAINS=true #optional #- EXTRA_DOMAINS=<extradomains> #optional - STAGING=false #optional volumes: - /srv/dev-disk-by-label-Data/Data/Dockers/swag:/config ports: - 450:443 - 90:80 #optional restart: unless-stopped
some notes:
my-net is my default network docker ( is usefull to have all dockers in same network to use name resollution in docker, so you can refer dockers by name ), to use it, you need to create it first (docker network create my-net) from CLI
1 - You need to redirect in your router external port 443 to your NAS IP:450 and external port 80 to yourNAS_IP:90
2- you need to create a DuckDNS account so it can resolve your public IP to a name , EG: unwohltaeter
this permit to use URL like https://unwohltaeter.duckdns.org/firefly or https://unwohltaeter.duckdns.org/jellyfin
3 - use your own config path, mine is: - /srv/dev-disk-by-label-Data/Data/Dockers/swag:/config
4 - and finally , you need to edit files on /config/nginx/proxy_confs to configure your reverse proxy
more info on: https://docs.linuxserver.io/images/docker-swag
https://hub.docker.com/r/linuxserver/swag
my first time I do not know how swag works and take 4 weeks of test ( trial & errors) to make it work, now I can deploy it in seconds, and can add new services in seconds, only need to edit the stack and restart swag docker
DuckDNS isn't local. I just want local domains.
DuckDNS isn't local. I just want local domains.
Did you read what I wrote on #11???
The solution is there.
Did you read what I wrote on #11???
The solution is there.
Yes, I have read it. I'm sorry I didn't mention that.
But it's only half a solution because it only works for the PC where the hosts file is located. However, I want all devices on the home network to be able to access these addresses.
I tried it with dnsmasq and the hosts file and put my server as DNS server in the router, but it didn't work.
But it's only half a solution because it only works for the PC where the hosts file is located.
Yes, it's a pain that you need to do it in all machines but that's the way I found to do it.
Maybe someone else will give other possibilities.
Or, maybe you can try with adguard via docker as a DNS server and you set the DNS ip to it on the router.
Honestly, don't know how to do it. I only use adguard to block the ads to specific machines and NOT as a DNS server for the whole network.
Check the adguardhome github to see if it gives you any solution/ideas.
or pihole
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!