Passthrough WebFinger requests to Mastodon #2

Open
opened 2 years ago by cel · 1 comments
cel commented 2 years ago
Owner
diff --git a/nginx/nginx/templates/000-default.conf.template b/nginx/nginx/templates/000-default.conf.template
index 293d02c..ff34995 100644
--- a/nginx/nginx/templates/000-default.conf.template
+++ b/nginx/nginx/templates/000-default.conf.template
@@ -31,6 +31,10 @@ server {
                proxy_pass https://${MATRIX_HOSTNAME};
        }

+       location /.well-known/webfinger {
+               proxy_pass https://${MASTODON_HOSTNAME};
+       }
+
        # separate Mastodon WEB_DOMAIN and LOCAL_DOMAIN
        location = /.well-known/host-meta {
                return 302 https://${MASTODON_HOSTNAME}$request_uri;
```diff diff --git a/nginx/nginx/templates/000-default.conf.template b/nginx/nginx/templates/000-default.conf.template index 293d02c..ff34995 100644 --- a/nginx/nginx/templates/000-default.conf.template +++ b/nginx/nginx/templates/000-default.conf.template @@ -31,6 +31,10 @@ server { proxy_pass https://${MATRIX_HOSTNAME}; } + location /.well-known/webfinger { + proxy_pass https://${MASTODON_HOSTNAME}; + } + # separate Mastodon WEB_DOMAIN and LOCAL_DOMAIN location = /.well-known/host-meta { return 302 https://${MASTODON_HOSTNAME}$request_uri; ```
cel commented 2 years ago
Poster
Owner
This is also included in #7 (https://github.com/osresearch/hackerspace-zone/pull/24/files#diff-2a889766ffd2dddaae142742fb6db4a74fcf8cd3e65401a326e1db3b045263daR63)
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: cel/hackerspace-zone-mirror#2
Loading…
There is no content yet.