feat: default config fallback + Railway one-click deploy#23
Merged
christianromeni merged 1 commit intomainfrom Mar 24, 2026
Merged
feat: default config fallback + Railway one-click deploy#23christianromeni merged 1 commit intomainfrom
christianromeni merged 1 commit intomainfrom
Conversation
VoidLLM now starts with built-in defaults when no config file is found, reading VOIDLLM_ENCRYPTION_KEY, VOIDLLM_ADMIN_KEY, and VOIDLLM_LICENSE from environment variables. This enables zero-config deploys on Railway and bare docker run with just ENV vars. - Add loadDefaults() fallback in config.Load() - Remove hardcoded --config CMD from Dockerfile - Add railway.json for one-click Railway deploy - Add Deploy on Railway button to README
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VOIDLLM_ENCRYPTION_KEY,VOIDLLM_ADMIN_KEY, andVOIDLLM_LICENSEfrom environment variables--configCMD from Dockerfile — auto-discovery finds mounted configs, falls back to defaultsTest plan
go test ./internal/config/... -racepasses (3 new test cases for loadDefaults)VOIDLLM_ENCRYPTION_KEY=test go run ./cmd/voidllmstarts without config filego run ./cmd/voidllmwithout env vars fails with clearsettings.encryption_keyerror