alias for instance servername
hi,
my question, can we configure a pleroma instance so that it can be reached at pleroma.domain.net. but users can be found at @username@domain.net? something like an alias.
my first try to do this:
# on: domain.net
...
location /.well-known/webfinger {
if ( $query_string ~ resource=acct:(?<username>[^@]+)@domain\.net ) {
return 302 https://pleroma.domain.net/.well-known/webfinger?resource=acct:$username@pleroma.domain.net;
}
}
...
if it should be complicated then I could imagine the whole thing as with matrix instances.
eg.:
- instance runs with servername domain.net
- delegation over .well-know and dns srv record - see: https://github.com/matrix-org/synapse/blob/master/docs/federate.md#delegation
- nginx conf example:
# on: domain.net
...
location /.well-known/matrix/ {
add_header Access-Control-Allow-Origin *;
add_header Content-Type application/json;
return 200 '{"m.server": "domain:8448", "m.homeserver": {"base_url": "https://matrix.domain.net"}}';
}
location /_matrix {
include proxy_params;
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_pass https://matrix.doamin.net;
}
...
many thanks to you and our wonderful pleroma! <3
Edited by creme