From b35be62899005e68ef9f920171332123358a5d59 Mon Sep 17 00:00:00 2001 From: IAmRGroot Date: Sat, 22 Aug 2020 13:20:45 +0000 Subject: [PATCH] Removed subdomain hardcoding --- docker-compose.yml | 7 +++---- routes/async.php | 2 +- routes/web.php | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 113a61a..b6ed108 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -50,11 +50,11 @@ services: ipv4_address: 172.19.0.4 labels: - traefik.enable=true - - traefik.http.routers.http.rule=Host(`home.${APP_HOST}`) + - traefik.http.routers.http.rule=Host(`${APP_HOST}`) - traefik.http.routers.http.entrypoints=http - traefik.http.routers.http.middlewares=redirect - traefik.http.middlewares.redirect.redirectscheme.scheme=https - - traefik.http.routers.https.rule=Host(`home.${APP_HOST}`) + - traefik.http.routers.https.rule=Host(`${APP_HOST}`) - traefik.http.routers.https.tls=true - traefik.http.routers.https.entrypoints=https - traefik.http.routers.https.tls.certresolver=basic @@ -185,7 +185,7 @@ services: - 80:80 - 443:443 # The Web UI (enabled by --api.insecure=true) - - 8081:8080 + # - 8081:8080 environment: - PUID=${UID} - PGID=${UID} @@ -194,7 +194,6 @@ services: volumes: - /var/run/docker.sock:/var/run/docker.sock - ./docker-compose/traefik/traefik.toml:/traefik.toml - # - ./docker-compose/traefik/dynamic_conf.toml:/dynamic_conf.toml - ./docker-compose/traefik/traefik:/acme restart: unless-stopped diff --git a/routes/async.php b/routes/async.php index 90a4a02..bb98f08 100644 --- a/routes/async.php +++ b/routes/async.php @@ -2,7 +2,7 @@ use Illuminate\Support\Facades\Route; -Route::domain('home.' . config('app.host'))->group(function () { +Route::domain(config('app.host'))->group(function () { Route::middleware('auth')->group(static function () { Route::prefix('movies')->group(static function () { Route::get('', 'Media\MovieController@movies'); diff --git a/routes/web.php b/routes/web.php index a28e04b..226e2e5 100644 --- a/routes/web.php +++ b/routes/web.php @@ -2,7 +2,7 @@ use Illuminate\Support\Facades\Route; -Route::domain('home.' . config('app.host'))->group(function () { +Route::domain(config('app.host'))->group(function () { Route::middleware('guest')->group(static function () { Route::get('/login', 'Auth\LoginController@page')->name('login'); Route::post('/login', 'Auth\LoginController@login')->name('login');