woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.07k stars 353 forks source link

use 'WOODPECKER_ROOT_URL' can't login #1773

Closed wenchao5211 closed 1 year ago

wenchao5211 commented 1 year ago

Component

server

Describe the bug

when i use WOODPECKER_ROOT_URL, woodpecker can't login

 apply style from 'http://xxx/ci/assets/index-6d181f24.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
ci:1  Refused to execute script from 'http://xxx/ci/web-config.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
index-b6d7ab2a.js:1  Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
ci:1  Refused to apply style from 'http://xxx/ci/assets/index-6d181f24.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

System Info

kubernets 1.25

woodpecker v0.15.9 
woodpecker image tag:next

Additional context

No response

Validations

wenchao5211 commented 1 year ago

@spantaleev
I see https://github.com/devture/com.devture.ansible.role.woodpecker_ci_server/pull/2#issuecomment-1530932964 Also, I found some static file access issues on the front end, and I would like to know if there is a specific completion schedule for this feature ? I haven't seen any pr for that yet.

absolutejam commented 1 year ago

Just to check, should Docker image docker.io/woodpeckerci/woodpecker-server:pull_1783 have these changes?

As I'm still getting a missing favicon & icon, and the Login button sends me to /login instead of respecting the WOODPECKER_ROOT_URL

wenchao5211 commented 1 year ago

Just to check, should Docker image docker.io/woodpeckerci/woodpecker-server:pull_1783 have these changes?

As I'm still getting a missing favicon & icon, and the Login button sends me to /login instead of respecting the WOODPECKER_ROOT_URL

me too