Can't make secure connection to pi but can to Mac on same network

Sadly, it’s not possible to show the diff logs.

the only thing that’s changed is the hardware swapout and making sure all the ports etc. are set up. They’re all identical to the old set up.

@ctbritt

Understood, but actually I had asked for a diff of the configurations. :wink:

Well, I finally fixed it. I deleted all the certs, upgraded caddy, and simplified my caddy file. it’s now this:

# This replaces the existing content in /etc/caddy/Caddyfile

# A CONFIG SECTION FOR YOUR IP AND HOSTNAME

{
    default_sni 192.168.5.86
    debug
    email callbritton@mac.com
}

192.168.5.86 {
    # PROXY ALL REQUEST TO PORT 30000
    tls internal
    reverse_proxy localhost:30000
    encode zstd gzip
}

foundry.azthir-terra.com {
    # PROXY ALL REQUEST TO PORT 30000
    reverse_proxy localhost:30000
    encode zstd gzip
}
5e.azthir-terra.com {
        # PROXY ALL REQUEST TO PORT 5000
        root * /Volumes/foundrydisk/5etools-mirror-2.github.io/
        file_server browse
        encode zstd gzip
}

192.168.7.121 {
    # PROXY ALL REQUEST TO PORT 50000
    tls internal
    reverse_proxy raspberrypi.local:50000
    encode zstd gzip
}

pi.azthir-terra.com {
    # PROXY ALL REQUEST TO PORT 50000
    reverse_proxy raspberrypi.local:50000
    encode zstd gzip
}

# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile

Now I can ssh into my pi from both inside and outside the network, and get a secure connection to all of the machines and domains.

thanks everyone for their help!
C

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.