Comments (6)
Actually I didn't realize an optional config file exists. This solves it nicely for our use-case. Thanks a lot for pointing me in the right direction, sorry for the distraction.
For others https://immich.app/docs/install/config-file is the docs link.
from immich.
I think the hardcoded localhost
is probably wrong since people might be developing against a database running on a different host. However for your use case, maybe it would be more appropriate to support some sort of trigger/hook that is called after server startup? That might also make it possible to use the API to configure things rather than needing to directly poke the database.
@jrasm91 thoughts?
from immich.
I agree, poking the database directly is not a great idea, so far was just the only way to pre-setup this on behalf of the user. Does immich have an API which can be used on localhost without access tokens where we could just call the openid settings endpoint (and potentially other things)? Or would this be more the job for the immich-admin
to have subcommands for that?
from immich.
I was not aware of a use case to manually run migrations through this command outside of development. We can make it possible to run against another host, but relying on it seems like a recipe for future issues. There is an API for setting and updating the configuration so maybe it is worth looking into a way to leverage the instead.
from immich.
Ideally we don't want to run the database migration manually up front. This is really only needed as the OpenID auth settings are pre-provisioned for the user on Cloudron to have SSO across many apps installed on a server.
Maybe to circumvent the database migration/app bootstrapping issue, does Immich have a way to pre-provision certain settings, like picking up those values from env variables instead of the database if provided? Briefly looked through the code but didn't catch anything like that.
from immich.
There is the config file, but I don't know whether that works for you as it fully locks the settings UI.
from immich.
Related Issues (20)
- [feature] Always localize places names
- Microservices error contacting Machnie Learning when URL has trailing slash HOT 7
- [bug] Scroll indicator goes behind the topbar HOT 4
- [feature] When scrolling with the scroll indicator, the photos should be kept aligned to the month HOT 1
- [feature] Show and group places differently when photos are taken from a plane HOT 2
- Error: Input file contains unsupported image format HOT 2
- Files edited in place cause inconsistency
- Images are cut-off when viewing in large view
- Android App Keeps (trying) to upload the same file over and over HOT 3
- Slow cold startup time for mobile app HOT 4
- Logs flooding with port errors, machine learning searches throw connection errors in logs HOT 2
- Unable to login with app, ApiException 404 HOT 2
- immich-machine-learning throws a Exception in ASGI application error on starting any kind of machine learning job HOT 4
- Search by filename HOT 2
- Feature picture missing, causing the entire person go go missing from the "people" tab
- Errors when loading config file are not properly logged HOT 2
- error: password authentication failed for user "postgres" HOT 1
- Unable to login to oauth after some time.
- API exception when logging into Android app v1.105.1 HOT 3
- App can't hit .well_known, hits incorrect API endpoint, then logs out HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from immich.