@@ -71,46 +71,44 @@ const fastify = createServer({
7171 appPaths : [ '/api' , '/oauth' , '/xrpc' , '/ap' , '/_matrix' ] ,
7272 // Explicit ids — the <name>/plugin.js convention collides on basename.
7373 plugins : [
74- { id : 'relay' , module : at ( 'relay/plugin.js' ) , prefix : '/relay' } ,
75- { id : 'webrtc' , module : at ( 'webrtc/plugin.js' ) , prefix : '/webrtc' } ,
76- { id : 'terminal' , module : at ( 'terminal/plugin.js' ) , prefix : '/terminal' , config : { token : terminalToken } } ,
77- { id : 'tunnel' , module : at ( 'tunnel/plugin.js' ) , prefix : '/tunnel' } ,
74+ { module : at ( 'relay/plugin.js' ) , prefix : '/relay' } ,
75+ { module : at ( 'webrtc/plugin.js' ) , prefix : '/webrtc' } ,
76+ { module : at ( 'terminal/plugin.js' ) , prefix : '/terminal' , config : { token : terminalToken } } ,
77+ { module : at ( 'tunnel/plugin.js' ) , prefix : '/tunnel' } ,
7878 {
79- id : 'notifications' ,
8079 module : at ( 'notifications/plugin.js' ) ,
8180 prefix : '/.notifications' ,
8281 config : { podsRoot : PODS , baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } ,
8382 } ,
84- { id : 'pay' , module : at ( 'pay/plugin.js' ) , prefix : '/paid' , config : { cost : 1 , address : 'demo' } } ,
85- { id : 'nip05' , module : at ( 'nip05/plugin.js' ) , prefix : '/nip05' , config : { podsRoot : PODS , relayUrl : `${ PUBLIC_URL . replace ( / ^ h t t p / , 'ws' ) } /relay` } } ,
86- { id : 'corsproxy' , module : at ( 'corsproxy/plugin.js' ) , prefix : '/proxy' , config : { } } ,
87- { id : 'capability' , module : at ( 'capability/plugin.js' ) , prefix : '/cap' , config : { } } ,
88- { id : 'webdav' , module : at ( 'webdav/plugin.js' ) , prefix : '/webdav' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
89- { id : 'gitscratch' , module : at ( 'gitscratch/plugin.js' ) , prefix : '/git' , config : { } } ,
90- { id : 'sparql' , module : at ( 'sparql/plugin.js' ) , prefix : '/sparql' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
91- { id : 'otp' , module : at ( 'otp/plugin.js' ) , prefix : '/otp' , config : { } } ,
92- { id : 'carddav' , module : at ( 'carddav/plugin.js' ) , prefix : '/carddav' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
93- { id : 'mastodon' , module : at ( 'mastodon/plugin.js' ) , prefix : '/mastodon' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
94- { id : 'bluesky' , module : at ( 'bluesky/plugin.js' ) , prefix : '/bluesky' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
95- { id : 'caldav' , module : at ( 'caldav/plugin.js' ) , prefix : '/caldav' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
96- { id : 'webfinger' , module : at ( 'webfinger/plugin.js' ) , prefix : '/webfinger' , config : { podsRoot : PODS , baseUrl : PUBLIC_URL } } ,
97- { id : 'activitypub' , module : at ( 'activitypub/plugin.js' ) , prefix : '/activitypub' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
98- { id : 'rss' , module : at ( 'rss/plugin.js' ) , prefix : '/feed' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
99- { id : 'matrix' , module : at ( 'matrix/plugin.js' ) , prefix : '/matrix' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
100- { id : 'search' , module : at ( 'search/plugin.js' ) , prefix : '/search' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
101- { id : 'didweb' , module : at ( 'didweb/plugin.js' ) , prefix : '/didweb' , config : { podsRoot : PODS , baseUrl : PUBLIC_URL } } ,
102- { id : 's3' , module : at ( 's3/plugin.js' ) , prefix : '/s3' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
103- { id : 'micropub' , module : at ( 'micropub/plugin.js' ) , prefix : '/micropub' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
104- { id : 'backup' , module : at ( 'backup/plugin.js' ) , prefix : '/backup' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
105- { id : 'shortlink' , module : at ( 'shortlink/plugin.js' ) , prefix : '/short' , config : { baseUrl : PUBLIC_URL } } ,
106- { id : 'oembed' , module : at ( 'oembed/plugin.js' ) , prefix : '/oembed' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
107- { id : 'jmap' , module : at ( 'jmap/plugin.js' ) , prefix : '/jmap' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
83+ { module : at ( 'pay/plugin.js' ) , prefix : '/paid' , config : { cost : 1 , address : 'demo' } } ,
84+ { module : at ( 'nip05/plugin.js' ) , prefix : '/nip05' , config : { podsRoot : PODS , relayUrl : `${ PUBLIC_URL . replace ( / ^ h t t p / , 'ws' ) } /relay` } } ,
85+ { module : at ( 'corsproxy/plugin.js' ) , prefix : '/proxy' , config : { } } ,
86+ { module : at ( 'capability/plugin.js' ) , prefix : '/cap' , config : { } } ,
87+ { module : at ( 'webdav/plugin.js' ) , prefix : '/webdav' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
88+ { module : at ( 'gitscratch/plugin.js' ) , prefix : '/git' , config : { } } ,
89+ { module : at ( 'sparql/plugin.js' ) , prefix : '/sparql' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
90+ { module : at ( 'otp/plugin.js' ) , prefix : '/otp' , config : { } } ,
91+ { module : at ( 'carddav/plugin.js' ) , prefix : '/carddav' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
92+ { module : at ( 'mastodon/plugin.js' ) , prefix : '/mastodon' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
93+ { module : at ( 'bluesky/plugin.js' ) , prefix : '/bluesky' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
94+ { module : at ( 'caldav/plugin.js' ) , prefix : '/caldav' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
95+ { module : at ( 'webfinger/plugin.js' ) , prefix : '/webfinger' , config : { podsRoot : PODS , baseUrl : PUBLIC_URL } } ,
96+ { module : at ( 'activitypub/plugin.js' ) , prefix : '/activitypub' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
97+ { module : at ( 'rss/plugin.js' ) , prefix : '/feed' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
98+ { module : at ( 'matrix/plugin.js' ) , prefix : '/matrix' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
99+ { module : at ( 'search/plugin.js' ) , prefix : '/search' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
100+ { module : at ( 'didweb/plugin.js' ) , prefix : '/didweb' , config : { podsRoot : PODS , baseUrl : PUBLIC_URL } } ,
101+ { module : at ( 's3/plugin.js' ) , prefix : '/s3' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
102+ { module : at ( 'micropub/plugin.js' ) , prefix : '/micropub' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
103+ { module : at ( 'backup/plugin.js' ) , prefix : '/backup' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
104+ { module : at ( 'shortlink/plugin.js' ) , prefix : '/short' , config : { baseUrl : PUBLIC_URL } } ,
105+ { module : at ( 'oembed/plugin.js' ) , prefix : '/oembed' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
106+ { module : at ( 'jmap/plugin.js' ) , prefix : '/jmap' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` } } ,
108107 // webfinger/ above owns /.well-known/webfinger — the witnessed collision
109108 // (remotestorage/README.md) — so remotestorage stands down here.
110- { id : 'remotestorage' , module : at ( 'remotestorage/plugin.js' ) , prefix : '/remotestorage' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` , claimWellKnown : false } } ,
111- { id : 'metrics' , module : at ( 'metrics/plugin.js' ) , prefix : '/metrics' , config : { loopbackUrl : `http://127.0.0.1:${ PORT } ` , ...( process . env . METRICS_TOKEN ? { token : process . env . METRICS_TOKEN } : { } ) } } ,
109+ { module : at ( 'remotestorage/plugin.js' ) , prefix : '/remotestorage' , config : { baseUrl : PUBLIC_URL , loopbackUrl : `http://127.0.0.1:${ PORT } ` , claimWellKnown : false } } ,
110+ { module : at ( 'metrics/plugin.js' ) , prefix : '/metrics' , config : { loopbackUrl : `http://127.0.0.1:${ PORT } ` , ...( process . env . METRICS_TOKEN ? { token : process . env . METRICS_TOKEN } : { } ) } } ,
112111 {
113- id : 'dashboard' ,
114112 module : at ( 'dashboard/plugin.js' ) ,
115113 prefix : '/dashboard' ,
116114 // Auto-discovers every plugin via api.plugins (#610); reaches the host
@@ -128,7 +126,6 @@ const fastify = createServer({
128126 } ,
129127 } ,
130128 {
131- id : 'admin' ,
132129 module : at ( 'admin/plugin.js' ) ,
133130 prefix : '/admin' ,
134131 // Auto-discovers via api.plugins (#610); origin via api.serverInfo
0 commit comments