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

[Feature Request] Custom Login Screen with local CSS/images, etc #173

Closed
TaakoMagnusen opened this issue Apr 10, 2021 · 2 comments
Closed

Comments

@TaakoMagnusen
Copy link

I'd like to be able to have a custom login screen that uses local css and images stored the server itself so a server without internet connectivity can still have a custom login screen.

@GilbN
Copy link
Collaborator

GilbN commented Apr 12, 2021

I'm looking into it, Just need to find the best place to store the files as you can't have them on the array.

@GilbN
Copy link
Collaborator

GilbN commented Jun 13, 2021

So. You can add the files into /usr/local/emhttp/plugins/dynamix/styles and whitelist the files in the auth_request.php in /usr/local/emhttp/

like:

$arrWhitelist = [
  '/webGui/styles/clear-sans-bold-italic.eot',
  '/webGui/styles/clear-sans-bold-italic.woff',
  '/webGui/styles/clear-sans-bold-italic.ttf',
  '/webGui/styles/clear-sans-bold-italic.svg',
  '/webGui/styles/clear-sans-bold.eot',
  '/webGui/styles/clear-sans-bold.woff',
  '/webGui/styles/clear-sans-bold.ttf',
  '/webGui/styles/clear-sans-bold.svg',
  '/webGui/styles/clear-sans-italic.eot',
  '/webGui/styles/clear-sans-italic.woff',
  '/webGui/styles/clear-sans-italic.ttf',
  '/webGui/styles/clear-sans-italic.svg',
  '/webGui/styles/clear-sans.eot',
  '/webGui/styles/clear-sans.woff',
  '/webGui/styles/clear-sans.ttf',
  '/webGui/styles/clear-sans.svg',
  '/webGui/styles/default-cases.css',
  '/webGui/styles/font-cases.eot',
  '/webGui/styles/font-cases.woff',
  '/webGui/styles/font-cases.ttf',
  '/webGui/styles/font-cases.svg',
  '/webGui/images/case-model.png',
  '/webGui/images/green-on.png',
  '/webGui/images/red-on.png',
  '/webGui/images/yellow-on.png',
  '/webGui/styles/green.css',
  '/webGui/styles/retro-terminal-base.css',
 '/webGui/styles/some-logo.png',
 '/webGui/styles/custom_text_header.js'
];

Then change the bash script hrefs to the file paths /webGui/styles/green.css ect
You also need to change the green.css to include the local file and not the remote. Or combine them.

@GilbN GilbN closed this as completed Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants