diff --git a/.gitignore b/.gitignore index 6a71d16..21abf4a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ src.a src.bin debug release -data/ +data assets/soapbox* backup/ vgcore.* diff --git a/README.md b/README.md index 4455fd3..d4c6d43 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/controller/main.c b/src/controller/main.c index 7394cf6..2413a72 100644 --- a/src/controller/main.c +++ b/src/controller/main.c @@ -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 }, }; diff --git a/src/main.c b/src/main.c index 0d00692..1e082b5 100644 --- a/src/main.c +++ b/src/main.c @@ -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;