parkomat / parkomat Goto Github PK
View Code? Open in Web Editor NEWDNS + Web + WebDav server in one package.
Home Page: https://parkomat.io/
License: MIT License
DNS + Web + WebDav server in one package.
Home Page: https://parkomat.io/
License: MIT License
after set $GOPATH to ~/gocode and run the go get command, it reported error, as shown below:
$ go get github.com/parkomat/parkomat
github.com/miekg/dns
gocode/src/github.com/miekg/dns/client.go:431: undefined: tls.DialWithDialer
gocode/src/github.com/miekg/dns/dnssec.go:257: undefined: crypto.Signer
gocode/src/github.com/miekg/dns/dnssec.go:321: undefined: crypto.Signer
gocode/src/github.com/miekg/dns/sig0.go:16: undefined: crypto.Signergolang.org/x/net/webdav
gocode/src/golang.org/x/net/webdav/webdav.go:619: (&url.URL literal).EscapedPath undefined (type *url.URL has no field or method EscapedPath)
[root@sing2 local]# go get github.com/parkomat/parkomat go: downloading github.com/parkomat/parkomat v0.0.0-20190302145223-95487e067039 go: github.com/parkomat/parkomat upgrade => v0.0.0-20190302145223-95487e067039 go: finding module for package github.com/Sirupsen/logrus go: finding module for package golang.org/x/net/webdav go: finding module for package github.com/BurntSushi/toml go: finding module for package github.com/miekg/dns go: downloading golang.org/x/net v0.0.0-20200301022130-244492dfa37a go: downloading github.com/BurntSushi/toml v0.3.1 go: downloading github.com/miekg/dns v1.1.27 go: downloading github.com/Sirupsen/logrus v1.4.2 go: found github.com/Sirupsen/logrus in github.com/Sirupsen/logrus v1.4.2 go: found github.com/BurntSushi/toml in github.com/BurntSushi/toml v0.3.1 go: found github.com/miekg/dns in github.com/miekg/dns v1.1.27 go: found golang.org/x/net/webdav in golang.org/x/net v0.0.0-20200301022130-244492dfa37a go: github.com/parkomat/parkomat imports github.com/Sirupsen/logrus: github.com/Sirupsen/[email protected]: parsing go.mod: module declares its path as: github.com/sirupsen/logrus but was required as: github.com/Sirupsen/logrus [root@sing2 local]#
root@N1: go get github.com/parkomat/parkomat
package golang.org/x/crypto/ssh/terminal: unrecognized import path "golang.org/x/crypto/ssh/terminal" (https fetch: Get https://golang.org/x/crypto/ssh/terminal?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
package context: unrecognized import path "context" (import path does not begin with hostname)
package golang.org/x/net/webdav: unrecognized import path "golang.org/x/net/webdav" (https fetch: Get https://golang.org/x/net/webdav?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
root@N1: go version
go version go1.6.1 gccgo (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 linux/arm64
Can we build the software and put the executables in the github release so we users can just grab the executables and run?
docker run -i -t -e PARKOMAT_CONFIG_FILE=/opt/parkomat/config.toml -v /opt/parkomat:/opt/parkomat -p 80:80 parkomat/parkomat
/ ── opt
└── parkomat
├── dav
├── www
│ ├─── default
│ │ └── public_html
│ │ └── index.html
│ ├─── xxx.com
│ │ └── public_html
│ │ └── index.html
│ └─── test
│ └── public_html
│ └── index.html
└── config.toml
# if you set it to true, Parkomat will serve any domain pointing at it
#catch_all = true
[web]
ip = "0.0.0.0"
port = 80
path = "/opt/parkomat/www/"
# make sure that path exists
# for example issue mkdir -p /var/log/parkomat
#access_log = "./parkomat.log"
[webdav]
enabled = true
username = "ad"
password = "ad"
# your share will be under http://example.domain/dav/
mount = "/opt/parkomat/dav/"
[dns]
ip = "127.0.0.1"
port = 33333
# details of dns servers for NS record
[[dns.servers]]
name = "f1g1ns1.dnspod.net"
ip = "1.1.1.1"
[[dns.servers]]
name = "f1g1ns2.dnspod.net"
ip = "1.1.1.1"
1.1.1.1 is my vps ip
xxx.com is my domain name
INFO[0000] Parkomat (parkomat.io) service=main
INFO[0000] Init service=webdav
INFO[0000] Serve over udp net=udp service=dns
INFO[0000] Serve over tcp net=tcp service=dns
INFO[0000] Serve ip=0.0.0.0 port=80 service=web
INFO[0000] Loading certificates path=/opt/parkomat/www/ service=web
WARN[0000] No .key file name=xxx.com service=web
WARN[0000] No .key file name=test service=web
[21/Apr/2017 02:40:24] 404 58.45.5.188 GET 1.1.1.1 / 19 0.0000
[21/Apr/2017 02:40:25] 404 58.45.5.188 GET xxx.com / 19 0.0000
如题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.