inconshreveable / srvdir Goto Github PK
View Code? Open in Web Editor NEWExpose any folder as an HTTPS fileserver
License: Other
Expose any folder as an HTTPS fileserver
License: Other
Hi @inconshreveable,
Was wondering if you had any ideas on how we could link to http cross domain files like maybe jquery or some other public url? Currently because the srvdir is only https, it prevents cross domain http from working.
Maybe we can have the option to choose whether we want the tunnel over http or https?
go version go1.2.1 linux/amd64
make
go fmt srvdir/...
go get -tags 'debug' -d -v srvdir/...
go install -gcflags "-N -l" -tags 'debug' srvdir/cmd/srvdir
go install -gcflags "-N -l" -tags 'debug' srvdir/cmd/srvdird
# srvdir/server
src/srvdir/server/metrics.go:21: unknown keen.Client field 'ApiKey' in struct literal
src/srvdir/server/metrics.go:21: unknown keen.Client field 'ProjectToken' in struct literal
make: *** [server] Error 2
wget --spider https://*******.srvdir.net 2>&1
HTTP request sent, awaiting response... 405 Method Not Allowed
Remote file does not exist -- broken link!!!
# github.com/inconshreveable/srvdir/client
.\main.go:35: c.BindHTTPS undefined (type *client.ReconnectingSession has no field or method BindHTTPS)
When I use -auth option I get no response from srvdir.net. Any hints?
i compiled as is and chmod +x srvdird .. ./srvdird and sudo ./srvdird gave me the same output.
panic: open : no such file or directory
goroutine 1 [running]:
srvdir/server.Main()
/tmp/srvdir/src/srvdir/server/main.go:25 +0xfb
main.main()
/tmp/srvdir/src/srvdir/cmd/srvdird/main.go:6 +0x18
goroutine 2 [syscall]:
goroutine 4 [runnable]:
code.google.com/p/log4go.ConsoleLogWriter.run(0xc200107000, 0xc2000bc480, 0xc200000008)
/tmp/srvdir/src/code.google.com/p/log4go/termlog.go:23
created by code.google.com/p/log4go.NewConsoleLogWriter
/tmp/srvdir/src/code.google.com/p/log4go/termlog.go:19 +0x6a
goroutine 5 [runnable]:
code.google.com/p/log4go.ConsoleLogWriter.run(0xc200107160, 0xc2000bc480, 0xc200000008)
/tmp/srvdir/src/code.google.com/p/log4go/termlog.go:23
created by code.google.com/p/log4go.NewConsoleLogWriter
/tmp/srvdir/src/code.google.com/p/log4go/termlog.go:19 +0x6a
./srvdird died with exit status 2
What am I doing wrong?
By default, srvdir renders a folder with index.htm as a folder listing.
H Masri @Sryn
So we can get a homebrew formula
https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook
Just like we have one for ngrok.
https://github.com/Homebrew/homebrew/blob/master/Library/Formula/ngrok.rb
*.srvdir.net certificate has expired on 2015-12-15. Please, update it.
Hi,
I don't know is a feature or a bug... but I prefer to report it.
Reproduce it:
Note that the file is placed, after download, at its final destination but is executing from \Temp dir as you can see at the screenshot.
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.