Skip to content

Default self-hosted Docker Compose setup generates HTTPS asset URLs while only serving HTTP #26

Description

@kerunix

b10cks version

2026.8.25-1571e931

Install method

One-line installer (get.b10cks.com)

PHP version

PHP 8.5.9 (cli)

Database

image: mariadb:11.4

Steps to reproduce

  1. Install with one liner
  2. Navigate to /b10cks directory
  3. Run docker compose exec app php artisan tinker \ --execute='dump(app()->environment(), config("app.url"), url("/build/test.js"));'

Expected behavior

"production"
"http://localhost:8000"
"http://localhost:8000/build/test.js"

Actual behavior

"production"
"http://localhost:8000"
"https://localhost:8000/build/test.js"

Logs or screenshots

When going to http://localhost:8000 the browser then raises CORS errors `Cross-Origin Request Blocked … CORS request did not succeed. Status code: (null)`

I understand why the default setup would be `production`, however I think that allowing `forceScheme('https')` to be configurable to allow local dev setups would be a good thing. My current workaround is a `compose.override.yml` with the following code, but it's not ideal :


# compose.override.yml
services:
  app:
    environment:
      APP_ENV: local

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions