Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filament admin panel #27

Merged
merged 5 commits into from
Sep 27, 2022
Merged

Filament admin panel #27

merged 5 commits into from
Sep 27, 2022

Conversation

alexjustesen
Copy link
Owner

Changelog

Added

Default Admin Account

Previews

Authentication

image

Results

image
image

@alexjustesen alexjustesen added the 🎉 feature New feature or request label Sep 27, 2022
@alexjustesen alexjustesen self-assigned this Sep 27, 2022
@alexjustesen alexjustesen merged commit a1087ac into main Sep 27, 2022
@alexjustesen alexjustesen deleted the filament-admin-panel branch September 27, 2022 22:51
@alexdelprete
Copy link
Contributor

alexdelprete commented Sep 28, 2022

Great news!

I just tested this, and I have a "mixed content" issue loading the admin panel, it doesn't load the CSS. I use Traefik, with an https url, and it's pulling the site from the internal docker http url.

image

This is what I see in the log (see http error 302):

10.1.10.30 - - [28/Sep/2022:17:55:07 +0200] "GET / HTTP/1.1" 302 394 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.0.0"
10.1.10.30 - - [28/Sep/2022:17:55:07 +0200] "GET /admin HTTP/1.1" 302 418 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.0.0"
10.1.10.30 - - [28/Sep/2022:17:55:07 +0200] "GET /admin/login HTTP/1.1" 200 3639 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.0.0"
10.1.10.30 - - [28/Sep/2022:17:55:22 +0200] "POST /livewire/message/filament.core.auth.login HTTP/1.1" 200 264 "https://speedtest.osilife.net/admin/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)Chrome/107.0.0.0 Safari/537.36 Edg/107.0.0.0"
10.1.10.30 - - [28/Sep/2022:17:55:23 +0200] "GET /admin HTTP/1.1" 200 13616 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.0.0"

If I use the docker url directly it works fine.

image

This is the log whith the direct url, bypassing the proxy:

10.1.10.45 - - [28/Sep/2022:17:42:31 +0200] "POST /livewire/message/filament.core.auth.login HTTP/1.1" 200 257 "http://docker2.axel.dom:8008/admin/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.0.0"
10.1.10.45 - - [28/Sep/2022:17:42:31 +0200] "GET /admin HTTP/1.1" 200 13623 "http://docker2.axel.dom:8008/admin/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.0.0"
10.1.10.45 - - [28/Sep/2022:17:42:38 +0200] "GET /admin HTTP/1.1" 200 13620 "http://docker2.axel.dom:8008/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.0.0"
10.1.10.45 - - [28/Sep/2022:17:42:45 +0200] "GET /admin/results HTTP/1.1" 200 19249 "http://docker2.axel.dom:8008/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.0.0"

I already had this issue with BookStack, that is built with PHP: BookStackApp/BookStack#1204

The guys at LinuxServer.io built the BookStack image with an APP_URL env variable to solve the issue with reverse proxies. I guess it configures the BASE_URL for php, something like that.

image

@alexdelprete
Copy link
Contributor

alexdelprete commented Sep 28, 2022

BTW: I noticed really low speed values, I just did a manual test with the server 4302 I configured in config.yml:

speedtest:
  enabled: true
  schedule: '*/40 * * * *' # every hour
  ookla_server_id: 4302 # specify a server ID to use a sepecific server
tz: 'Europe/Rome'
   Speedtest by Ookla

      Server: Vodafone IT - Milan (id: 4302)
         ISP: Tecno General S.r.l
Idle Latency:     8.64 ms   (jitter: 0.31ms, low: 8.36ms, high: 9.29ms)
    Download:   813.10 Mbps (data used: 874.1 MB)
                 42.38 ms   (jitter: 38.70ms, low: 9.66ms, high: 941.40ms)
      Upload:   261.07 Mbps (data used: 150.7 MB)
                  9.76 ms   (jitter: 0.77ms, low: 8.44ms, high: 12.24ms)
 Packet Loss:     0.0%
  Result URL: https://www.speedtest.net/result/c/158c6f1d-3278-4606-b24a-fbd142c6deec

Is alpha.6 still using config.yml? If that's the case, I'm worried about the performance within docker, but the old speedtest-tracker worked fine in that regard. How do I check detailed info of a single test (server used, etc.)?

@alexjustesen
Copy link
Owner Author

@alexdelprete do you mind opening separate issues for the two comments above? This way I don't lose them in a closed PR?

@alexdelprete
Copy link
Contributor

Sorry about that, sometimes I feel like I'm in the discussions section. :)

I will open the 2 PRs.

@Drlanderf Drlanderf mentioned this pull request Oct 29, 2023
@rashedobaid rashedobaid mentioned this pull request Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants