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

[Bug]: var file lack of documentation for docker, misleading or not working #1510

Closed
2 tasks done
todeb opened this issue Jan 12, 2024 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@todeb
Copy link

todeb commented Jan 12, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration issue.
  • This issue is not already reported on Github (I've searched it).

Bug description

From doc:
If you install SFTPGo on Linux using the official deb/rpm packages you can set your custom environment variables in the file /etc/sftpgo/sftpgo.env. SFTPGo also reads files inside the env.d directory relative to config dir (/etc/sftpgo/env.d on Linux

On docker image used:

drakkan/sftpgo:v2.5.6-alpine

Tried different paths for mount the same variable file:

/etc/sftpgo/sftpgo.env - not applied by sftpgo
/etc/sftpgo/env.d/sftpgo.env - not applied by sftpgo
/var/lib/sftpgo/sftpgo.env - not applied by sftpgo 
/var/lib/sftpgo/env.d/sftpgo.env - applied by sftpgo 

For me documentation is not very clear why mount to /var/lib/sftpgo/env.d/sftpgo.env is applied but the others not.
Documentation is about direct linux installation not the docker, but this might be misleading.
Or maybe a bug?

Steps to reproduce

mount the same env variable to different locations and restart docker container

Expected behavior

more clear documentation.

SFTPGo version

drakkan/sftpgo:v2.5.6-alpine

Data provider

na

Installation method

Community Docker image

Configuration

config

Relevant log output

No response

What are you using SFTPGo for?

Medium business

Additional info

No response

@todeb todeb added the bug Something isn't working label Jan 12, 2024
@drakkan
Copy link
Owner

drakkan commented Jan 14, 2024

Thanks for your interest in SFTPGo, from the docs

SFTPGo also reads files inside the env.d directory relative to config dir

on Docker the config dir is /var/lib/sftpgo, if you install from deb/rpm the config dir is /etc/sftpgo.
On Docker you can easily set env vars without mounting a config file, anyway the method to use is a your choice

@drakkan drakkan closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants