If you've been trying for a while and still haven't gotten it working, then I'm probably missing something regarding your requirements.

But at first glance, it seems like it would be solved with 2 server blocks, 1 for 80, 1 for 443, each with their own proxy config passing / to their respective target ports.

  • source
  • parent
  • context
  • [–] 4 points 1 year ago (1 child)

    But for the sake of readability it would be much better to simply have username@mysite.com than username@mail.mysite.com

    That's kind of unrelated. You can configure a mail server at mail.mysite.com to handle mail to/from username@mysite.com. You don't need a proxy for that.

    But what if I do want my services to be accessed through mysite.com directly instead of a specific per-service subdomain?

    If they're all http(s) services, then that should be possible. I don't know anything about caddy, but with apache or nginx you can proxy based on path, so I'd assume you can with caddy also.

    For example mysite.com/chat could route to your chat app, mysite.com/webmail route to your webmail app, etc. But this isn't necessarily plug-and-play, because depending on the app you might need to set up proxy rules for cookie rewriting, link rewriting, etc.

    If you want to proxy non-http(s) traffic from 1 port to multiple destination apps, then it gets a LOT more complicated.

  • source
  • [–] 2 points 1 year ago

    So, you want to have two services accessible via the same URL? How do you want that to work? Can you give a list of services and the URLs you would like to access them by?

    At least for mail, its actually not too hard, because SMTP/POP etc are all on different ports, so you can host your mail at mysite.com, and still have a website at the same address.

  • source
  • [–] 1 point 1 year ago (1 child)

    It can be done, but only if the service your trying to use makes all of its requests using a specific port. There's no way to do it with a reverse proxy to my knowledge though. I've got both my email and my blog at myname.tld, for example. I just had to configure both of them with DNS.

    If what your trying to do is have all requests for one port be directed to another port... your out of luck. I've been trying for ages to have nginx forward all 443 traffic on proxy.mynane.tld to 30018 and 80 traffic on proxy.myname.tld to 30024 but no luck so far.

  • source
  • [–] 3 points 1 year ago

    I have self-hosted Matrix for a couple of years. I eventually settled with xmpp/ejabberd/conversations. It is easier to maintain and less resource intensive, especially if you want to go the federation route.

  • source
  • [–] 3 points 1 year ago (2 children)

    Not OP, but what I do lack here is a decent server Implementation in a single binary and easy deployment.

    Also decent native clients for various platforms. Do we have any good ones?

    This probably isn't a xmpp specific, but I'd like to have it work like wireguard. If the keys are wrong, self hosted instance would just reject it on the packet level. Then only authorized clients could use it. Outgoing connection on some hub instance would give access to outside world. All this would help with self hosting.

  • source
  • parent
  • context
  • [–] 2 points 1 year ago

    I just use linphone with flexisip. I don't understand why SIP dropped out of this chain.

    And yes, there are encrypted 1-on-1 or group chats and you can send photos and documents. As a bonus, you can connect a SIP provider to access the telephony line.

  • source
  • [–] 1 point 1 year ago

    I run deluge torrent with openVPN with pivoxy in a container.

    Arr stack and deluge uses proxy if the VPN drops off, all secure communication halts by default.

    Arr stack has default download set to SSD, copies files to a rotational disk storage on completion. continues to host the seed from the SSD.

    Once in a blue moon, I'll go back through Deluge and right-click Delete torrent and data for stuff that's well satisfied and who are really available.

    Once a year or so, I'll go back and make sure that there's no extra stuff in the download folders.

    You're fine without hard links as long as you have enough space and don't mind a little maintenance now and then.

  • source
  • [–] 2 points 1 year ago

    As an idea, I use an SSD as a "Default Download Directory" within qBittorrent itself, and then qB automatically moves it to a HDD when the download is fully finished. I do this because I want the write to be sequential going into my ZFS pool, since ZFS has no defragmentation capabilities.

    Hardlinks are only important if you want to continue seeding the media in its original form and also have a cleaned-up/renamed copy in your Jellyfin library. If you're going to continue to seed from the HDD, it doesn't matter that the initial download is done on the SSD. The *arr stack will make the hardlink only after the download is finished.

  • source
  • parent
  • context
  • [–] [S] 1 point 1 year ago (1 child)

    According to the document I linked:

    The first requirement is that all your media files and folders be in the same file system. Everything must be contained on a single physical or virtual drive

    if it's still possible to create hardlinks between the SSD and the Mirrored HDDs, I will go that route.

  • source
  • parent
  • context
  • [–] [S] 1 point 1 year ago (2 children)

    I was considering using the SSD to avoid wear and tear in the HDD because of the nature of the torrent downloads. My idea was using the SSD as a temporary/cache drive for the download itself, and then only executing one transfer move to the HDD once the media is completed. Drive noise was another concern, since my NAS sits in my living room and I want to avoid hearing the drives spinning constantly.

    I am using two Seagate Ironwolf HDD, which are NAS certified. Will they suffer if I use them for downloading as well as seeding?

  • source
  • parent
  • context
  • [–] 3 points 1 year ago* (3 children)

    TRaSH guides don't actually force you into using one filesystem. I have Sonarr setup using the guide and it uses 2 separate drives just fine.

    One thing I would note is that because of the emphasis on quality above all else, following the guides strictly would fill up your drives fairly quickly. If you were to re-prioritize the config to emphasize small file size, you could probably fit 3-4x as much content on there.

  • source
  • [–] 3 points 1 year ago (1 child)

    I haven't tried a USB adapter with proxmox, but there's a chance it would work. I was also looking at a cheap pcie card like this one as a way to add another ethernet port. https://pcpartpicker.com/product/dQmLrH/tp-link-wired-network-card-tg3468

    That being said, the steps in the link that David gave have worked for me to stop the hardware hang issue with the intel nic. Basically disable tcp segmentation offload and generic segmentation offload with ethtool -K eno1 tso off gso off. You can add a post-up command to the interace config to make it persistent.

  • source
  • parent
  • context
  • view more: ‹ prev next ›