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

feat: loading config file from dir of the executable file path #136

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dake0805
Copy link

@dake0805 dake0805 commented Sep 2, 2022

when looking for config file, adding another path besides

  • ./
  • /etc/webdav/

which is the path to the executable file webdav or webdav.exe,

So I can put the binary file and the config file together, and running webdav with this config file from any other working directory.

image

like the example in pic, config.yml set the port to 80 and the program read it correctly.

test passed on Windows 11 and Ubuntu 20.04 (WSL2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant