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

How to use custom config.yaml with webdav in windows10 . #45

Closed
mmiker opened this issue Jun 2, 2020 · 4 comments
Closed

How to use custom config.yaml with webdav in windows10 . #45

mmiker opened this issue Jun 2, 2020 · 4 comments

Comments

@mmiker
Copy link

mmiker commented Jun 2, 2020

I'm a new user. I run webdav in windows 10 cmd shell. the config.yaml is copyed from README.MD. in the same directory.
How could I run with my custom config.yaml ?
I tried eg:
d:\webdav\webdav -c config.yaml is same return error msg: "the environment variable is empty"
d:\webdav\webdav -c . the webdav is run but not use my config.yaml and can't login.

where could found the example ?

@sj6219
Copy link

sj6219 commented Jun 5, 2020

Change the settings in the config.yaml file.

auth: false

@Sevzm
Copy link

Sevzm commented Aug 19, 2020

This is because you set an "{env}" in your config file.
Just comment or delete the following lines in your config file, if you dont know what it means.

  - username: "{env}ENV_USERNAME"
    password: "{env}ENV_PASSWORD"

and considering you're a new user, your config can be like this(not quite correct, but it may works for you):

# Server related settings
address: 0.0.0.0
port: 10010
auth: true
tls: false
cert: cert.pem
key: key.pem


# Default user settings (will be merged)
scope: .
modify: true
rules: []

# CORS configuration
cors:
  enabled: true
  credentials: true
  allowed_headers:
    - Depth
  allowed_hosts:
    - http://localhost:8080
  allowed_methods:
    - GET
  exposed_headers:
    - Content-Length
    - Content-Range

users:
  - username: admin
    password: admin

@maincooss
Copy link

I use the configuration andI run WebDAV directly in Linux, but the password admin / admin is always wrong.

@hacdias
Copy link
Owner

hacdias commented Jul 30, 2024

I suggest taking a look at the README and trying out the latest version.

@hacdias hacdias closed this as completed Jul 30, 2024
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

No branches or pull requests

5 participants