practice-golang / webdav-server

Practice. A Simple WebDAV server with basic auth using Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebDAV Server

A simple webdav server with basic auth using Golang.

Files and Folders

  • keygen : OpenSSL to create certificates
  • pem : Cert files in here
  • storage : Service storage
  • win_conn_example : Batch files for connection in windows explorer
  • server.go : WebDAV server

Build

  • Download repo and run go build at root of downloaded repo

Access Control

  • Please modify or expand codes after comment - Check credential in server.go
  • With current source, you may cannnot enter to /webdav/folder2

Create certificates

Via HTTPS, you should create or have your own certificates.

  • Create and copy certs as below.
cd keygen
keygen.cmd

move *.pem ../pem/

Open in MS-Windows Explorer

  • If you use RMB > Map Network Drive... in explorer window, You should enable Connect using different credentials. Better to use command in win_conn_example/add_webdav.cmd
  • Via HTTP, you should modify set in registry as below.
regedit > HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
BasicAuthLevel to 2
  • Via HTTPS
    • See files in win_conn_example

Run or open in other OS

I hope that you can do it yourself well. ^_^

License

Public domain. Use at your own risk.

Reference

About

Practice. A Simple WebDAV server with basic auth using Golang

License:Other


Languages

Language:Go 96.0%Language:Batchfile 4.0%