Code Monkey home page Code Monkey logo

labean's People

Contributors

uprtdev avatar

Stargazers

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

Watchers

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

labean's Issues

"allow_explicit_ips": true, seems not working

I use "allow_explicit_ips": true, and with nginx example reverse proxy config , but seems the use of https://someserver.org/secret/service/on/?ip=123.56.78.9 not working, the clientIp isn't ip address 123.56.78.9 . The clientIp is still the real client IP but not specified ?ip=123.56.78.9 .
Or maybe I config nor using it wrong .
Need your help.
Thank you very much!
By the way , if there is a client app on android or ios etc, will be even greater I wish.

I think this should be added to man page

Config file in example show how to setup nginx to work with labean.
But for noobies like me, it's difficult to setup apache2 to work with labean.

I spent some time to write config file for apache2 servers.

Maybe for someone my work will be helpfull

This part you should paste into your apache2 config file

<Location ~ "/secret/(.*)">
RewriteEngine on
Options +FollowSymlinks
AllowOverride All
deny from all
AuthType basic
AuthName "Administrator login"
AuthUserFile /etc/apache2/htpasswd
Satisfy Any
Require valid-user
header add X-Real-IP "%{REMOTE_ADDR}s"
RequestHeader append X-Real-IP "%{REMOTE_ADDR}s"
ProxyPass http://127.0.0.1:8080/$1

maybe this config made not quite competently, but it works

No such task

If we specify the secret URL as shown in the doc (https://someserver.org/secret/vpn/on), we get the "No such task" error.

So, we should use https://someserver.org/secret/secret/vpn/on instead to make things working. :)

P.S. Tried to change http://127.0.0.1:8080/$1 to http://127.0.0.1:8080$request_uri, but got "500 Internal Server Error" due to, I think, leading slash in the URI that can't be handled by labean.

Another fix: set http://127.0.0.1:880/secret/$1 in the nginx config.

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.