Code Monkey home page Code Monkey logo

caddy-altonions's Introduction

caddy-altonions's People

Contributors

mahrud avatar mastercactapus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

caddy-altonions's Issues

Add a license

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.

Usage case

Hi would love to know if this fits my use case:

  • run hidden service with the same root as a clear service
  • run multiple hidden services with the same .onion domain but with subdomains
  • run the hidden service with https to be able to use http/2 for multiplexing the conection

Thanks for your time in advance!

undefined proxyprotocol.Config

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

Unexpected token '{', expecting argument

To compile this, I followed these steps:

  1. go get github.com/mholt/caddy/caddy
  2. go get github.com/caddyserver/builds
  3. go get github.com/mahrud/caddy-altonions
  4. Apply this patch in $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 (
  1. go run build.go from $GOPATH/src/github.com/mholt/caddy/caddy
  2. ./caddy -plugins (lists http.altonions)
  3. ./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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.