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
debug
release
data/
data
assets/soapbox*
backup/
vgcore.*

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

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

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

Loading…
Cancel
Save