Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant