Update README, add .gif mime type, add additional web servers

master
teknomunk 5 months ago
parent fa96756d01
commit d9c90deb84

2
.gitignore vendored

@ -5,7 +5,7 @@ src.a
src.bin src.bin
debug debug
release release
data/ data
assets/soapbox* assets/soapbox*
backup/ backup/
vgcore.* vgcore.*

@ -50,7 +50,7 @@ Starting section 2 (outbox)
Starting section 5 (fetch) Starting section 5 (fetch)
```` ````
The listening port is chosen at random each time the program is run until setup, then the configured The listening port is chosen at random each time the program is run unless setup or a port is specified
port is used. Open a browser and navigate to http://${hostnameOrIPAddress}:${PORT}/, then fill in the with --listen=\$PORT, then the configured port is used. Open a browser and navigate to http://${hostnameOrIPAddress}:${PORT}/,
required information. then fill in the required information.

@ -45,6 +45,7 @@ const char* mime_type_for_filename( const char* filename )
{ ".ogg", "audio/ogg" }, { ".ogg", "audio/ogg" },
{ ".oga", "audio/ogg" }, { ".oga", "audio/ogg" },
{ ".jsonld", "application/ld+json" }, { ".jsonld", "application/ld+json" },
{ ".gif", "image/gif" },
{ NULL, NULL }, { NULL, NULL },
}; };

@ -39,6 +39,8 @@ int main( int argc, char* argv[], char* envp[] )
if( g_server->section == -1 ) { if( g_server->section == -1 ) {
printf( "Starting Apogee ActivityPub server...\n" ); printf( "Starting Apogee ActivityPub server...\n" );
printf( "Using port %d for web server\n", g_server->http_settings.bind_port ); printf( "Using port %d for web server\n", g_server->http_settings.bind_port );
// Tor
process_start_section(6); process_start_section(6);
// Make sure we have a hidden service hostname // Make sure we have a hidden service hostname
@ -48,10 +50,21 @@ int main( int argc, char* argv[], char* envp[] )
} else { } else {
fclose(f); fclose(f);
} }
// Web servers
process_start_section(0);
process_start_section(0);
process_start_section(0); process_start_section(0);
// Inbox
process_start_section(1); process_start_section(1);
// Outbox
process_start_section(2); process_start_section(2);
// Fetch
process_start_section(5); process_start_section(5);
process_wait_for_finished(); process_wait_for_finished();
printf( "Apogee server shutting down...\n" ); printf( "Apogee server shutting down...\n" );
code = EXIT_SUCCESS; code = EXIT_SUCCESS;

Loading…
Cancel
Save