diff --git a/config/routes.php b/config/routes.php index 37d4feb..541b106 100644 --- a/config/routes.php +++ b/config/routes.php @@ -29,4 +29,4 @@ $app->get('/', App\Action\HomePageAction::class, 'home'); $app->get('/api/galleries', App\Action\ListGalleriesAction::class, 'api.galleries'); $app->get('/image/{slug}/{image}[/{thumb}]', App\Action\GetImageAction::class, 'download.image'); -$app->get('/export-album/{slug}', App\Action\ExportAlbumAction::class, 'export.album'); +$app->get('/export-album/{slug}.zip', App\Action\ExportAlbumAction::class, 'export.album'); diff --git a/deploy.php b/deploy.php index 2f4dfe6..d95f420 100644 --- a/deploy.php +++ b/deploy.php @@ -21,7 +21,7 @@ set('writable_dirs', []); set('keep_releases', 3); set('default_stage', 'production'); -server('prod', 'alfheim.ragnarok.yvan.hu', 22) +host('alfheim.ragnarok.yvan.hu', 22) ->stage('production') ->user('yvan') ->forwardAgent() diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..44f8f3c --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Disallow: /export/ +Disallow: /export-album/