diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fbff685 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM nextcloud:25 + +ENV NEXTCLOUD_UPDATE 1 +ENV NEXTCLOUD_ADMIN_USER repod +ENV NEXTCLOUD_ADMIN_PASSWORD repod +ENV SQLITE_DATABASE repod + +RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \ + apt-get install -y nodejs && \ + /entrypoint.sh true + +USER www-data + +COPY --chown=www-data:www-data . apps/repod +RUN curl -sSLo /tmp/gpoddersync.tar.gz https://github.com/thrillfall/nextcloud-gpodder/releases/download/3.8.1/gpoddersync.tar.gz && \ + tar xvzf /tmp/gpoddersync.tar.gz -C apps && \ + rm /tmp/gpoddersync.tar.gz && \ + cd apps/repod && make build && cd - \ + php occ app:enable gpoddersync repod + +USER root diff --git a/appinfo/routes.php b/appinfo/routes.php index 9dcaddf..2ba0621 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -11,13 +11,7 @@ declare(strict_types=1); * it's instantiated in there */ return [ - 'resources' => [ - 'note' => ['url' => '/notes'], - 'note_api' => ['url' => '/api/0.1/notes'] - ], 'routes' => [ - ['name' => 'page#index', 'url' => '/', 'verb' => 'GET'], - ['name' => 'note_api#preflighted_cors', 'url' => '/api/0.1/{path}', - 'verb' => 'OPTIONS', 'requirements' => ['path' => '.+']] + ['name' => 'page#index', 'url' => '/', 'verb' => 'GET'] ] ]; diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php new file mode 100644 index 0000000..d95623d --- /dev/null +++ b/lib/Controller/PageController.php @@ -0,0 +1,27 @@ + -