#Ip with port

1 messages · Page 1 of 1 (latest)

meager mica
brittle shell
#
  1. lets encrypt?
#
  1. though idk if it apply in is-a.dev but check the SRV in Domain structure
burnt bramble
#

for ssl certificate, use letsencrypt. caddy has automatic ssl certificates feature if you use caddy

meager mica
#

And can I use srv records on my is-a.dev domain?

burnt bramble
#

yes

#

scroll down

#

for SRV

meager mica
#

Ok, and how do I use let's encrypt for free to get an SSL certificate for localhost:3544 on my machine? So that if I go to https://147.185.221.27:3544/
I have an https connection

burnt bramble
meager mica
#

And how did you get your SSL then on your self hosted stuff?

burnt bramble
#

my selfhosted stuff runs on http but is proxied by cloudflare which handles the ssl stuff

meager mica
#

And is that free?

burnt bramble
#

yes

#

but you need ns records to use that with is-a.dev

#

if you have a vps with port forward i recommend you just use caddy

#

because it has automatic ssl certificates as a feature

meager mica
#

My stuff is localhosted

#

Can I get an ns record from is a dev then?

burnt bramble
#

hm

#

i just remember

#

#service-news

#

i dont think its allowed anymore

meager mica
#

And do you know anything else which I can use to get free ns records?

#

Maybe another subdomain or something

burnt bramble
#

idk

burnt bramble
#

then i recommend you just use A records

meager mica
#

I remember when it was just as easy as using freenom to get a free .TK domain

burnt bramble
#

forget cloudflare

#

caddy is just as easy to setup

meager mica
#

Ok

meager mica
burnt bramble
#

you did give an ip

#

i'm assuming that is the site you want right

meager mica
#

Right

#

But I assume that if I want to use caddy I need to have a domain right?

burnt bramble
#

not exactly

#

caddy is a server that you run just like your current server

#

you can access caddy just like your current site

#

it will forward your request to your actual server

meager mica
#

Interesting

#

So it's like a tunnel?

burnt bramble
#

no not exactly

#

its just a normal server

#

that reverse proxies requests

#

to your actual server

#

in a way its a tunnel

#

but it runs on the same machine as your server

#

so i wouldn't call it taht

meager mica
#

Is it just a reverse proxy with built in tunnel?

burnt bramble
#

lets start again, what do you think tunnel means?

meager mica
#

Request --> tunnel --> actual server

#

So you don't need to port forward

burnt bramble
#

that's a reverse proxy

#

not a tunnel

#

request -> a different server -> your server

that is a tunnel

meager mica
meager mica
burnt bramble
#

"a different server" i mean physically

#

a differetn server in a differnet place

meager mica
#

So I understood it correct

burnt bramble
#

can you have port forwarding setup?

meager mica
burnt bramble
#

nope

#

it gives a shared ip

#

your domain routes the request to your actual server

meager mica
#

It gives you a shared ip with a port

burnt bramble
#

and you cannot use is-a.dev domains there

burnt bramble
#

that is why you cannot use is-a.dev domains there

meager mica
#

Is caddy like the same as playit?

burnt bramble
#

no

#

caddy runs on your own server

#

so you still need port forwarding

meager mica
#

Ah ok

#

So caddy is a reverse proxy with built in SSL?

burnt bramble
#

yes

#

it also does other things but in our case yes

meager mica
#

Can I use the following setup?

http server --> caddy server (to convert it to https) --> playit.gg (to "port forward" it) --> srv record (to make it an is-a.dev domain)

burnt bramble
#

i don't know about how playit works let me see

meager mica
#

It basically tunnels for example 127.0.0.1:80 to sharedip:port

#

So you don't need to port forward into your router

burnt bramble
#

oh so it gives you a full port?

#

then i think it should work

meager mica
#

They give you a static port btw, that's what make them different from ngrok

meager mica
#

Or udp if I change it to udp (but I don't think I need udp)

#

Does caddy use a lot of ram or cpu?

burnt bramble
#

nope

#

for me with a lot of stuff on caddy

#

it uses 60mb ram

#

with 0% cpu unless you have heavy load even then it uses very low cpu

meager mica
#

Ah so no problem on my server with an Intel core i5 9500 and 64 GB DDR4 ram with 2666 MHz

burnt bramble
#

yes

#

its very lightweight

#

all it does is forward requests

meager mica
#

That's great

#

And can I use caddy to for example forward requests to another machine on my local network?

So for example forwarding requests to 192.168.1.34:80

burnt bramble
#

yes

#

that's what caddy is built for after all

meager mica
#

What a great tool then

burnt bramble
#

i know right

meager mica
#

Thx for helping me man

#

That helped a lot

burnt bramble
#

no worries

#

glad i could help

#

@meager mica can i know what you're running on playit

meager mica
#

Don't know if this is the right place to ask but I got a tiny question about home labbing.

Why should I use jellyfin over mp4 movies with VLC?

burnt bramble
#

i'm trying to recreate your environment

burnt bramble
meager mica
burnt bramble
#

oh so that's it

#

thanks

meager mica
burnt bramble
#

you can also watch your shows if you are away from home with a phone

#

its basically your personal netflix

meager mica
burnt bramble
#

yeah but its useless for me since i don't go out much and i don't have anything other than this laptop lol

meager mica
#

And what kind of hard drives do I need to use to store the movies then? I have a very thight budget

burnt bramble
#

how many movies do you plan to have

#

and how often and how many people will watch movies

meager mica
burnt bramble
#

that's a lot

meager mica
meager mica
burnt bramble
#

then you can just get a nice cheap hdd that works

#

and can last long

#

and has decent speeds

#

it doesn't have to be fast

#

since movies are at best 10MB/sec if many watch at the same tmie

meager mica
#

And if I want to host my jellyfin 24/7, do I need a special hdd?

burnt bramble
#

no not required

meager mica
burnt bramble
#

that's not bad at all

meager mica
burnt bramble
#

as long as like 5 family members are watching the movie in 4k from different devices at the same time i don't think it matters

meager mica
#

Wait, let me grab the link

burnt bramble
meager mica
#

Here is where I bought my hdd

burnt bramble
#

if its idle most of the time its not a significant problem

meager mica
#

Idk if you can turn the website to english

meager mica
burnt bramble
#

constantly i mean

meager mica
#

4 hours per week

#

Lol

#

So not that many

burnt bramble
#

as long as you're not spending >16 hours a day watching movies i don't think you will have any problems

#

i admit i've never had any hardware but from what i know that's pretty much it

meager mica
#

What do you use to store your jellyfin movies?

burnt bramble
#

just my pc's harddrive

#

i don't have anythng on it lol

#

let me check

#

i have 15 gb of media on it

#

that's all

meager mica
#

I was planning to host jellyfin on my raspberry pi 4 with 4 GB ram and a 128 GB SD card

burnt bramble
#

i can't get any external harddrive and i have 150gb free sapce left

meager mica
meager mica
burnt bramble
burnt bramble
meager mica
burnt bramble
#

transcoding will just kill it lol

meager mica
#

What do you mean with transcoding?

burnt bramble
#

its converting the video format

#

from mp4/etc to a stream that any browser can support

#

its resource intensive

meager mica
#

So that's required to be able to watch movies on my phone for example?

burnt bramble
#

which means the phone will do the transcoding

#

which means you don't need to do much on the rpi

meager mica
#

So I need to choose between intensive resource usage on my rpi or intensive resource usage on my phone?

meager mica
#

And does it make any difference in 5G usage?

burnt bramble
#

where do you host your homelab

#

and where do you access it from

meager mica
#

At home

#

Duh it's a homelab

#

Lol

burnt bramble
#

then 5g won't matter

burnt bramble
#

where do you access it from

meager mica
#

Most of the time like 200 km away from my home

burnt bramble
#

as long as your home wifi is faster than your phone isp or same atleast

meager mica
#

That's the case

#

My home lab is hosted in Belgium and I am currently in the Netherlands for example

burnt bramble
#

also about the resource usage if you direct stream

#

most of the time your phone doesn't need to do transcoding

#

it will just play it

meager mica
burnt bramble
#

unless you're using some weird format that your phone does not support

#

which you most probably aren't

meager mica
#

All movies I have are in mp4 or mkv

#

And what is the resource usage of jellyfin if I just use direct stream?

meager mica
#

That's great

#

Was that German what I saw for a second? Lol

burnt bramble
#

ya i was using a translator earlier for smth else i forgot to turn it off

#

lol

meager mica
#

I speak dutch, french, English and German. So if I saw it for a bit longer I could maybe understand

burnt bramble
# burnt bramble also negligible

ich habe das im Grunde auf Deutsch gesagt, aber ich habe vergessen, den Übersetzer zu deaktivieren, also wurde es ins Deutsche übersetzt

meager mica
#

I understand like 80% of it

#

You are telling that you forget to turn your translator to German off

burnt bramble
#

yes

meager mica
#

What are your languages?

meager mica
#

@burnt bramble will it slow down jellyfin if I keep using my 128 GB SD card in my rpi 4?

burnt bramble
#

yeah

#

sd cards aren't really great for random io

#

and they're more prone to failure

#

i wouldn't recommend it

#

they're slow too

meager mica
#

I thought an SD card would be better then an USB stick to use as system drive

burnt bramble
#

nope

#

sd card is terrible in all aspects other than physical size

meager mica
#

What should I use instead?

burnt bramble
#

you said you had a hdd?

meager mica
#

as storage

#

Not as system drive

burnt bramble
#

oh for system drive

#

mb

#

i think its still gonna be bad

#

maybe you can like

#

move every jellyfin files

#

to your hdd

meager mica
#

SSD is better than HDD.
SD is just one S less than SSD.
So I thought an SD was just like a tiny SSD

burnt bramble
#

and symlink them in your rpi

#

that's gonna be ebtter

burnt bramble
meager mica
#

So I should use an SSD as startup drive for my pi. Where can I find something for like under 50€?

burnt bramble
#

ssds are fast

#

i don't know about where to buy

#

i don't buy hardware nor i live in the eu

meager mica
#

Where do you live?

burnt bramble
#

im from india

meager mica
#

I have a question: do indian scam centers also call indians?

burnt bramble
#

😭

#

idk i've never gotten one

meager mica
#

I get called every month. Most people are mad about it, but I just laugh at it because it's funny lol

#

When you hear the accent you just know it's a scam 🤣

burnt bramble
#

lol

meager mica
#

Anyways, I am just going to take a look at bol.com for a SSD

meager mica
#

PS C:\Users\keesdekaasdokter\caddy_config> $env:DUCKDNS_API_TOKEN = "my duckdns token" PS C:\Users\keesdekaasdokter\caddy_config> C:\Users\keesdekaasdokter\Desktop\caddy.exe run --config Caddyfile 2025/07/27 10:20:22.908 ←[34mINFO←[0m maxprocs: Leaving GOMAXPROCS=8: CPU quota undefined 2025/07/27 10:20:22.908 ←[34mINFO←[0m GOMEMLIMIT is updated {"package": "github.com/KimMachineGun/automemlimit/memlimit", "GOMEMLIMIT": 14798503526, "previous": 9223372036854775807} 2025/07/27 10:20:22.909 ←[34mINFO←[0m using config from file {"file": "Caddyfile"} 2025/07/27 10:20:22.909 ←[34mINFO←[0m maxprocs: No GOMAXPROCS change to reset Error: adapting config using caddyfile: parsing caddyfile tokens for 'tls': DuckDNS missing API token, at Caddyfile:3 PS C:\Users\keesdekaasdokter\caddy_config>

i get this error

my caddy build exe: https://gofile.io/d/SRGtpz

#

@burnt bramble

burnt bramble
#

mhm?

#

why is your caddy build exe so big lol

meager mica
#

because it includes the duckdns addon

burnt bramble
#

what's the

#

dockerfile

#

for your caddy build

#

oh waiitii

#

mb

#

you're not using docker

meager mica
meager mica
#

i am trying to install the caddy server on my server running windows 10 enterprise n ltsc 2021

#

do you know what i am doing wrong?

burnt bramble
#

i'm looking into it rn

meager mica
#

ok

burnt bramble
#

my internet just came back

#

had some issues

meager mica
#

lol

burnt bramble
#

it got stuck on 20mb for like

#

5 minutes

meager mica
#

that sucks

burnt bramble
#

wait

#

you must specify

#

your duckdns api token

#

here

#

use that

#

{env.DUCKDNS_API_TOKEN}

meager mica
#

can you send me the updated caddyfile?

#

i generated it with chatgpt tbh

burnt bramble
#

bruh

#

shouldve read the docs

#
vulcanocaddy.duckdns.org {
    tls {
        dns duckdns {env.DUCKDNS_API_TOKEN}
    }

    reverse_proxy 192.168.1.37:4096
}
meager mica
#

`vulcanocaddy.duckdns.org {
tls {
dns duckdns {env.DUCKDNS_API_TOKEN}
}

reverse_proxy 192.168.1.37:4096

}`

do i need to change something if i want to forward requests from 127.0.0.1:4500 to 192.168.1.37:4096?

#

@burnt bramble

burnt bramble
#

then yes

meager mica
burnt bramble
#

vulcanocaddy.duckdns.org -> localhost:4500

#

change that

#

but aren't you exposing your caddy

#

why do you want localhost:4500

meager mica
#

the setup i want to use:

playit.gg --> duckdns --> localhost:4500 --> 192.168.1.37:4096

#

i don't want to expose my real ip

#

so chatgpt said i needed to use something like DNS-01

#

idk if you know a better setup for my purpose

burnt bramble
#

hm

frosty tendon
burnt bramble
#

why are you using playit with duckdns

#

just use playit with caddy

frosty tendon
#

What furina said tbh

burnt bramble
#

oh wait you want to use duckdns for your playit ip?

meager mica
meager mica
burnt bramble
#

but you started this thread saying that you wanted to use an is-a.dev domain?

meager mica
#

yes, when my system is ready i want to link an is-a.dev domain so i can access all this from my is-a.dev domain

burnt bramble
#

i see

frosty tendon
meager mica
burnt bramble
#

so you're doing this?

is-a.dev -> cname to duckdns -> your playit ip -> playit tunnels to your local network -> caddy serving with https for your is-a.dev domain -> whatever

burnt bramble
#

are ports 80 and 443 free on your windows machine?

frosty tendon
frosty tendon
burnt bramble
#

yeah tahts wy i asked

meager mica
burnt bramble
#

caddy needs 80 and 443 otherwise we can use 9080 and 9443 if they're busy

burnt bramble
#

let me reproduce your situation on my pc

#

i'll get back to you with a working solution

meager mica
#

thx

frosty tendon
#

Or what do you want to use port 4500 for?

burnt bramble
#

4500 for caddy i'm assuming

#

caddy needs two ports tho

frosty tendon
burnt bramble
#

yes

meager mica
burnt bramble
#

that's why i had to take time lol

frosty tendon
burnt bramble
#

caddy is gonna choke up because they want it to run on 4500 for requests it gets on hostname with a different port

frosty tendon
#

But caddy has some sort of documentation

#

Lemme find it

burnt bramble
#

@meager mica

#

i got https working wiwth your setup

#

with this config

{
    http_port 9080
    https_port 4500
    admin off
}

dragsbruh.duckdns.org:4500 {
    tls {
        dns duckdns {env.DUCKDNS_API_TOKEN}
    }
    respond "im an secure silly little femboy"
}
meager mica
#

wow great

burnt bramble
#

remember to change your domain and replace respond with reverse proxy

meager mica
#

yes

burnt bramble
#
{
    http_port 9080
    https_port 4500
}

vulcanocaddy.duckdns.org:4500 {
    tls {
        dns duckdns {env.DUCKDNS_API_TOKEN}
    }
    reverse_proxy 192.168.1.37:4096
}
#

this would be yours

meager mica
#

thx

burnt bramble
#

if you want to use is-a.dev domain then create a subdomain with CNAME to your vulcanocaddy.duckdns.org and then update the caddyfile with your is-a.dev subdomain

#

@meager mica also you have to set your playit.gg ip address in duckdns manually

meager mica
burnt bramble
#

i didn't find a way to do it automatically

burnt bramble
meager mica
#

192.168.1.38 is the windows pc where the caddy server is running btw

burnt bramble
#

you're using http

#

http won't work with your setup unfortunately

meager mica
#

this is the error i get when i try to use https

burnt bramble
#

or atleast its gonna take a bit more config

burnt bramble
#

for a bit

meager mica
burnt bramble
meager mica
#

is that going to work? because my duckdns didn't update automatically

#

or do i need to do that manually?

burnt bramble
#

add your playit ip manually

#

not 127.0.0.1

meager mica
#

yay, it's working

#

now i need to put a cname record on my is-a.dev domain right?

#

correct?

#

@burnt bramble

burnt bramble
#

remove the port

#

only put vulcanocaddy.duckdns.org in cname

meager mica
#

ok, and how can i make it so i just need to enter lobby.panel.vulcanocraft.is-a.dev instead of lobby.panel.vulcanocraft.is-a.dev:37446

burnt bramble
#

i'm currently trying out cname.dev tho

#

although it'll add one more hop whichmight make things slower

meager mica
#

if it's like one more second delay it's fine for me

burnt bramble
#

i don't really recommend it personally

#

but if you still want it

meager mica
#

do you have alternatives?

#

which are faster

burnt bramble
#

go to cname.dev and create accuont
put the playit.gg ip and port you got
put lobby.panel.vulcanocraft.is-a.dev as domain
and save

#

then create an is-a.dev record lobby.panel.vulcanocraft.json with cname to map.cname.dev

#

for me it doesn't work atm it times out

burnt bramble
meager mica
#

i think i am just going to use caddy.vulcanocraft.is-a.dev:37446 then

burnt bramble
#

yeah that works

meager mica
#

##24760

fickle shoreBOT
meager mica
#

i hope this looks good @burnt bramble

#

do i need to do something when it gets merged?

burnt bramble
#

yeah it looks good

burnt bramble
#

just wait ig

#

also

#

for https to work after it gets merged

#

remember to change vulcanocaddy.duckdns.org in your caddyfile to your is-a.dev domain

meager mica
#

ok thx

#

@burnt bramble

burnt bramble
#

oh wait

#

you meant that

#

i don't htink you can do that with caddy

meager mica
#

ok, maybe another tool?

#

@burnt bramble

burnt bramble
#

idk

#

how do you get that error tho

#

i don't get that error

frosty tendon
burnt bramble
frosty tendon
#

ah

burnt bramble
#

that is why they're using caddy

#

but i think caddy gives you an error message

#

wait let me try

#

that's weird

#

i remember seeing a message along the lines of "client send http request to a https server" but i don't see that anymore

long leaf
#

Yoo chat, congratulations on 435 (now 436) comments in like 3 days!

burnt bramble
#

bruh

meager mica
#

{
http_port 9080
https_port 4500
}

caddy.vulcanocraft.is-a.dev:4500 {
tls {
dns duckdns {env.DUCKDNS_API_TOKEN}
}
reverse_proxy 192.168.1.37:4096
}

#

Is this a correct update for my caddy file? @burnt bramble

burnt bramble
#

hm?

#

yeah

#

also

#

you said you wanted http and https on the same port right

#

i found out a way to do it but

#

it uses a whole another proxy layer lol

meager mica
#

Interesting

burnt bramble
#

its sniproxy

#

but i don't recommend it

#

its mostly useless

meager mica
#

Ok

#

Then I will not use it

meager mica
burnt bramble
#

its another tool like caddy

#

but it runs on one port

meager mica
burnt bramble
#

and depending on the request it will detect if its http or https

#

and then route to either the caddy http port or https port respectively

#

i haven't tried out yet but it looks promising

meager mica
#

So I could maybe use it in following structure:

Is-a.dev --> duckdns --> playit --> sniproxy --> caddy --> 192.168.1.37:4096

burnt bramble
#

yes

#

the main transport layer is just

playit -> sniproxy -> caddy -> 192.168.1.37:4096

since the first two are just dns

#

and there's only 2 real hops that might affect performance

meager mica
#

Yeah

#

Can you test it for me?

burnt bramble
#

yea ig

meager mica
#

Let the sniproxy run at 4600

burnt bramble
#

oh also i think you need to update your cert logic since your not using duckdns now

burnt bramble
#

no no

meager mica
#

I am currently not at home btw, so I will probably update my caddyfile this evening

#

I am currently in Germany

burnt bramble
#

{
http_port 9080
https_port 4500
}

caddy.vulcanocraft.is-a.dev:4500 {
reverse_proxy 192.168.1.37:4096
}

#

you can also use normal caddy

#

instead of the duckdns version

#

since we aren't using duckdns as our main domain

#

also i recommend updating the ports

meager mica
#

But the important thing is that I want to keep my ip private

burnt bramble
#

yeah you're using playit so all good

#

wait hold on

#

i think lets encrypt requests to port 80 and playit does not allow that

#

i think lets just go with your setup

meager mica
#

Ok, summarize what I need to change to my caddyfile

#

@burnt bramble

frosty tendon
#

no need to ping them multiple times, they will respond to you soon

burnt bramble
#

hm

#

this is a problem

#

i don't think you can do a dns challenge with an is-a.dev domain nor you can do a http challenge since you can't use port 80

meager mica
#

I am asking for my caddyfile without sniproxy

burnt bramble
#

yeah that's the problem

#

i don't think you can do a dns challenge nor a http challenge with an is-a.dev domain

#

unless ofc you manually verify the dns challenge by submitting yet another pr which should get merged quickly

meager mica
#

Why can't I just do it with a CNAME to duckdns?

burnt bramble
#

because then you would have ssl certificates for your duckdns domain not is-a.dev domain

meager mica
#

But the SSL certificate expires after a half year. Do I need to create a PR every half year then?

burnt bramble
#

that too

meager mica
#

So it can't be a static txt record?

burnt bramble
#

it should be a txt record

#

it should be merged fast i think

#

in under 15 minutes

#

you can do that when a maintainer is online ig

#
certbot certonly --manual  --preferred-challenges dns  -d  "caddy.vulcanocraft.is-a.dev"

(check that domain if its correct)

#

after that it should show you a verification string that you add as txt record in _acme-challenge.caddy.vulcanocraft.json

#

and then wait for it to propagate and then hit enter

meager mica
#

And I need to update that txt every half year?

#

Isn't there a way to get a static txt so I only need to update it once a 5 year or something?

burnt bramble
#

idk much about this stuff

meager mica
#

{
http_port 9080
https_port 4500
}
vulcanocaddy.duckdns.org:4500 {
tls {
dns duckdns {env.DUCKDNS_API_TOKEN}
}
reverse_proxy 192.168.1.37:4096
}

How can i make it so that requests from 127.0.0.1:4600 are forwarded to 192.168.1.37:5500

#

Will it also have auto https?

#

@burnt bramble

meager mica
#

I am going to update my setup to the following soon:

Is-a.dev --> cloudflare pages (redirect page to my Duckdns with correct port) --> Duckdns --> playit.gg --> caddy server --> my webserver running on another local machine

burnt bramble
burnt bramble
burnt bramble
meager mica
meager mica
burnt bramble
meager mica
#

127.0.0.1:4500 -->> 192.168.1.37:4096
127.0.0.1:4600 -->> 192.168.1.37:5500

burnt bramble
#

yeah how do you plan to use cf pages

meager mica
#

just to redirect http requests to https

#

but that isn't the key point here

burnt bramble
#

that is the key point here

#

you can't just have cf pages on http and playit on https

meager mica
#

but that isn't what i am asking here

#

i am asking how i can change the config of my caddyfile so that
127.0.0.1:4500 -->> 192.168.1.37:4096
127.0.0.1:4600 -->> 192.168.1.37:5500

#

both with auto ssl

#

on the same duckdns domain

burnt bramble
#

they both get auto ssl on default

#

i think you can add multiple ports on playit.gg

#

so you just need to change your cadyfile

#

let me send u a sample

meager mica
#

{ http_port 9080 https_port 4500 } vulcanocaddy.duckdns.org:4500 { tls { dns duckdns {env.DUCKDNS_API_TOKEN} } reverse_proxy 192.168.1.37:4096 }

this is my current caddyfile

burnt bramble
#

next time use three backticks

#
` ``
your code here
` ``
meager mica
#

ok

burnt bramble
#

no spaces in between the backticks

meager mica
#
{
    http_port 9080
    https_port 4500
}
vulcanocaddy.duckdns.org:4500 {
    tls {
        dns duckdns {env.DUCKDNS_API_TOKEN}
    }
    reverse_proxy 192.168.1.37:4096
}
#
{
    http_port 9080
    https_port 4500
}
vulcanocaddy.duckdns.org:4500 {
    tls {
        dns duckdns {env.DUCKDNS_API_TOKEN}
    }
    reverse_proxy 192.168.1.37:4096
},
vulcanocaddy.duckdns.org:4600 {
    tls {
        dns duckdns {env.DUCKDNS_API_TOKEN}
    }
    reverse_proxy 192.168.1.37:5500
}

@burnt bramble does it work like this?

#

is this a correct caddyfile?

burnt bramble
#

nope

#

caddy listens on port 4500 so it can't get requests from port 4600

meager mica
#

but how can i add multiple webservers to caddy then?

burnt bramble
#

i'm figuring it out

#

this is reeally hard because of your current setup

#

imo you shouldve enabled port forwarding on your router

#

there i got it

#
{
    http_port 9080
    https_port 4500
}

vulcanocaddy.duckdns.org:4500 {
    tls {
        dns duckdns {env.DUCKDNS_API_TOKEN}
    }

    @server1 header Host vulcanocaddy.duckdns.org:35719
    @server2 header Host vulcanocaddy.duckdns.org:16749

    route {
        handle @server1 {
            reverse_proxy 192.168.1.37:4096
        }
        handle @server2 {
            reverse_proxy 192.168.1.37:5500
        }
    }
}
#

wait

#

change the ports obv

#

create a new tunnel here

#

and then add the first tunnel port in line 11 and second tunnel port in line 12

meager mica
#
{
    http_port 9080
    https_port 4500
}

vulcanocaddy.duckdns.org:4500 {
    tls {
        dns duckdns {env.DUCKDNS_API_TOKEN}
    }

    @server1 header Host vulcanocaddy.duckdns.org:37446
    @server2 header Host vulcanocaddy.duckdns.org:44711

    route {
        handle @server1 {
            reverse_proxy 192.168.1.37:4096
        }
        handle @server2 {
            reverse_proxy 192.168.1.37:5500
        }
    }
}

https://vulcanocaddy.duckdns.org:37446/ works perfectly
https://vulcanocaddy.duckdns.org:44711/ doesn't work

#

@burnt bramble

burnt bramble
#

what does it say in the logs for playit cli

meager mica
burnt bramble
#

like this

burnt bramble
meager mica
#

don't mind the first tunnel

burnt bramble
#

you put 4600

#

keep both port 4500 in playit config

meager mica
meager mica
#

it works !!!

meager mica
#

@burnt bramble to come back to the thing of cloudflare pages. with redirecting the http traffic to https.
try the following sites i set up:

http://vulcanosurvival.pages.dev/
http://vulcanotechcraft.pages.dev/
http://vulcanolobby.pages.dev/
http://vulcanoblock.pages.dev/
http://vulcanobedwars.pages.dev/
http://klokrise.pages.dev/

if you look closely, you see these are all http sites. but if you open it, you end up at my https webserver. because these cloudflare pages are just redirect sites with the following code

burnt bramble
meager mica
#

yes

#

also i connected my is-a.dev domain using following pr

#

##24856

fickle shoreBOT
meager mica
#

that's how i easily connect my is-a.dev domain to my duckdns so the ssl will be handled automatically by caddy

burnt bramble
#

oh well

meager mica
#
{
    http_port 9080
    https_port 4500
}

vulcanocaddy.duckdns.org:4500 {
    tls {
        dns duckdns {env.DUCKDNS_API_TOKEN}
    }

    @server1 header Host vulcanocaddy.duckdns.org:37446
    @server2 header Host vulcanocaddy.duckdns.org:44711
    @server3 header Host vulcanocaddy.duckdns.org:44737
    @server4 header Host vulcanocaddy.duckdns.org:12700
    @server5 header Host vulcanocaddy.duckdns.org:44783
    @server6 header Host vulcanocaddy.duckdns.org:36321
    @server7 header Host vulcanocaddy.duckdns.org:44767
    @server8 header Host vulcanocaddy.duckdns.org:44770

    route {
        handle @server1 {
            reverse_proxy 192.168.1.37:4096
        }
        handle @server2 {
            reverse_proxy 192.168.1.37:5500
        }
    handle @server3 {
        reverse_proxy 192.168.1.37:5600
    }
    handle @server4 {
        reverse_proxy 192.168.1.36:7223
    }
    handle @server5 {
        reverse_proxy 192.168.1.36:7221
    }
    handle @server6 {
        reverse_proxy 192.168.1.36:7222
    }
    handle @server7 {
        reverse_proxy 192.168.1.36:7226
    }
    handle @server8 {
        reverse_proxy 192.168.1.34:4096
    }
    }
}

this is my final caddyfile, i added all my webservers

#

wait, why isn't it formatted correctly on discord?

burnt bramble
#

¯_(ツ)_/¯

#

also

#

if you wanted redirects

#

you couldve just used a URL record to https://vulcanocaddy.duckdns.org:37446

meager mica
#

but i don't think it would redirect http trafic to https

burnt bramble
#

it would

#

its protocol agnostic

meager mica
#

it still has a big opportunity to use cloudflare pages for it.
i don't need to create a pull request every time i want to change the redirect destination

burnt bramble
#

that's true too

#

ig

meager mica
#

it saves a lot of time

#

both for me and the maintainers here