• 0 Posts
  • 21 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle













  • So I tried adding SSL and I still couldn’t get Voyager to work with a self hosted instance.

    If anybody has figured out how to get a self-hosted lemmy to work with an app I’d love to know how. For the moment I’m using NodeBB which is fine.

    I have Caddy and Lemmy running in containers on an Alpine Box, for which the hostname is “john”, it is configured to have a static IP at the router 192.168.1.200. Caddy is set to network_mode: "host".

    Here were my steps:

    1. Install bind-utils for dig/nslookup for debugging
    2. On the server install dnsmasq and add address=/john/192.168.1.200
    3. Add the tls internal directive to the caddyfile:
      http://lemmy.john {
          reverse_proxy :1236
          }
       https://lemmys.john {
          tls internal
          reverse_proxy :1236
           }
      
    4. Restart the container
    5. Set the DNS in the WireGuard config on iOS
    6. Use a http server to make the .crt files accessible on the iOS device python3 -m http.server
    7. Install the intermediate profile on the ios device (I installed root, intermediate and lemmys just to be sure)
    8. Open https://lemmys.john in Safari and ensure it loads normally, as a typical site would.
    9. Copy the URL to the Voyager App login

    When I try to open it from the account it says "Problem connecting to lemmys.john. Please try again”. It definitely loads fine in Safari, so there must be something particular to the app that I’m missing.

    Edit: unless this is an issue with the nginx reverse proxy inside the container 🤔