Reverse proxy #18

Open
opened 2024-05-30 05:13:50 +02:00 by taeer · 1 comment
Owner

A bunch of the systems run better behind a reverse proxy. Some even come configured to run that way. Mastodon was having issues with it, so I gave up and ran it directly in development mode, but I should figure out how to get it running properly again.

A bunch of the systems run better behind a reverse proxy. Some even come configured to run that way. Mastodon was having issues with it, so I gave up and ran it directly in development mode, but I should figure out how to get it running properly again.
Author
Owner

I've gotten it working mostly.

It still has issues with certain account-related operations (logging in, logging out, modifying preferences). But as long as you do those directly at http://mastodon.localhost:55001, everything else can be done behind the reverse proxy at https://mastodon.localhost:8443.

Unfortunately, this doesn't actually solve several of the issues I thought it would. Namely,

  • loading of static resources
    • missing.png: mastodon mistakenly tries to fetch this from http://mastodon.localhost:8443 rather than https://
    • custom.css: mastodon refuses to put a port on this one's URL
  • loading of images stored in s3. This is a totally unrelated issue. See taeer/simple-nixos-fediverse#7 (comment)
I've gotten it working **mostly**. It still has issues with certain account-related operations (logging in, logging out, modifying preferences). But as long as you do those directly at `http://mastodon.localhost:55001`, everything else can be done behind the reverse proxy at `https://mastodon.localhost:8443`. Unfortunately, this doesn't actually solve several of the issues I thought it would. Namely, - loading of static resources - `missing.png`: mastodon mistakenly tries to fetch this from `http://mastodon.localhost:8443` rather than `https://` - `custom.css`: mastodon refuses to put a port on this one's URL - loading of images stored in s3. This is a totally unrelated issue. See https://git.fediversity.eu/taeer/simple-nixos-fediverse/issues/7#issuecomment-90
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Fediversity/simple-nixos-fediverse#18
No description provided.