mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 17:23:04 +03:00
[PR #2315] [MERGED] Add support for custom .env file path #3273
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/2315
Author: @TinfoilSubmarine
Created: 2/16/2022
Status: ✅ Merged
Merged: 2/28/2022
Merged by: @dani-garcia
Base:
main← Head:custom-env-path📝 Commits (2)
8295688Add support for custom .env file pathc59a7f4document ENV_FILE variable usage📊 Changes
2 files changed (+6 additions, -1 deletions)
View changed files
📝
.env.template(+5 -0)📝
src/config.rs(+1 -1)📄 Description
Hi! I'm working on packaging this for Void, and in writing the runit service, I came across an annoyance: since the
.envfile can't be in the current working directory, it won't find it and thus has to read from the environment variables directly. This can be done with something like:But that is less than ideal IMO. This patch is a simple way to pass a single custom location where the env/config can be found.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.