Hi there ๐ I am a mathematics graduate student. Here is my institutional homepage.
mahrud / caddy-altonions Goto Github PK
View Code? Open in Web Editor NEWOpportunistic Onions plugin for Caddy
License: Apache License 2.0
Opportunistic Onions plugin for Caddy
License: Apache License 2.0
Hi there ๐ I am a mathematics graduate student. Here is my institutional homepage.
Hi there,
The copyright status for this code is unclear. Please choose a license so that this code can be legally used as you intend it to be.
Hi would love to know if this fits my use case:
Thanks for your time in advance!
Is this setup.go compileable with go 1.12?
go get github.com/mahrud/caddy-altonions
# github.com/mahrud/caddy-altonions
../../../mahrud/caddy-altonions/setup.go:32:21: undefined: "github.com/mastercactapus/caddy-proxyprotocol".Config
../../../mahrud/caddy-altonions/setup.go:38:19: undefined: "github.com/mastercactapus/caddy-proxyprotocol".Config
../../../mahrud/caddy-altonions/setup.go:133:19: undefined: "github.com/mastercactapus/caddy-proxyprotocol".Configs
To compile this, I followed these steps:
go get github.com/mholt/caddy/caddy
go get github.com/caddyserver/builds
go get github.com/mahrud/caddy-altonions
$GOPATH/src/github.com/mholt/caddy
:diff --git a/caddy/caddymain/run.go b/caddy/caddymain/run.go
index e17fdde..528e3bb 100644
--- a/caddy/caddymain/run.go
+++ b/caddy/caddymain/run.go
@@ -38,6 +38,7 @@ import (
_ "github.com/mholt/caddy/caddyhttp" // plug in the HTTP server type
// This is where other plugins get plugged in (imported)
+ _ "github.com/mahrud/caddy-altonions"
)
func init() {
diff --git a/caddyhttp/httpserver/plugin.go b/caddyhttp/httpserver/plugin.go
index 4abcbbb..5987c76 100644
--- a/caddyhttp/httpserver/plugin.go
+++ b/caddyhttp/httpserver/plugin.go
@@ -658,6 +658,7 @@ var directives = []string{
"gopkg", // github.com/zikes/gopkg
"restic", // github.com/restic/caddy
"wkd", // github.com/emersion/caddy-wkd
+ "altonions",
}
const (
go run build.go
from $GOPATH/src/github.com/mholt/caddy/caddy
./caddy -plugins
(lists http.altonions
)./caddy
Here's my Caddyfile:
68.235.48.108:28691
tls off
altonions vldaiehepzaljmwnet2gu77fzpialo2jtkx5znujn6ybcxeqq3utf6qd.onion:28691 {
ma 300
persist 0
}
I get this error:
Caddyfile:4 - Error during parsing: Unexpected token '{', expecting argument
.
What should I do?
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.