eusonlito / Password-Manager

Self-hosted Password Manager based on Laravel 10 + PHP 8 + MySQL 8. Gestor de Contraseñas basado en Laravel 10 + PHP 8 + MySQL 8.
MIT License
303 stars 65 forks source link

APP_URL and ASSET_URL with several values #66

Closed Namtor-FFM closed 1 week ago

Namtor-FFM commented 11 months ago

Hello,

In order to use PasswordManager, I either use in the URL the IP Address (http://192.168.1.4:8080/app) or the name of the Server (http://Home:8080/app).

In .env, the variables APP_URL and ASSET_URL are setup with the IP Address and PasswordManager is working correctly. When the name of the server is used, the icons are not displayed correctly. As you previously explained, this is because of these variables.

Do you know how I could add both IP Address and Server Name into these variables so that the icons are always correctly displayed?

Many thanks.

eusonlito commented 11 months ago

It's not possible. This variables are managed by Laravel to generate the routes and assets URLs.