Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
Removed subdomain hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
iamrgroot committed Aug 22, 2020
1 parent 91b0ea0 commit b35be62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion routes/async.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit b35be62

Please sign in to comment.