This project provides an easily configurable Docker container image, allowing you to enable a custom reverse proxy locally and share your applications globally through an FRP server.
The intended use of this is using Docker Compose, a .credentials and a server_config file, making it easier to manage.
Configuration can be done by adding a .env file as in the example .env.example and a file .credentials as in the example .credentiais.example.
This project includes an authentication module for a generic LDAP server. Any combination of username and password will be valid.
To include the address of a real server and start using this functionality, make the following changes:
- Replace the value of the
LDAP_HOSTdirective in authenticate.h withldap://YOUR_LDAP_URL:YOUR_LDAP_PORT; - Uncomment the
authenticate_LDAP_userfunction in authenticate.c.
Create a .credentials file in the same directory as your docker-compose.yaml file.
The .credentials file should contain your username and password separated by a space, for example:
cat > .credentials<my user> <my password> <press enter>
<press ctrl-c>Create a server_config file in the same directory as your docker-compose.yaml file.
The server_config file should contain the server host ip and port, separated by a :, for example:
cat > server_config<frp_server_ip>:<frp_server_port><press enter>
<press ctrl-c>Copy the .env.example file and rename it with .env.
PROXY_NAME="My web app"
PROXY_TYPE="http"
PROXY_LOCAL_IP=127.0.0.1
PROXY_LOCAL_PORT=3000
CUSTOM_APP_URL='my-app.test'This is the name of your service to the server, it doest matter to the final user but is how the frps will identify you.
Default: '"your user"_proxy'
The type of service youre offering, it can be http or https, tcp, udp, ldap, etc...
Default: http
The local ip where your service is running.
Default is 127.0.0.1(localhost)
The local port of your service.
Default is 3000
The service will be available via this url. It's imperative that this url is valid and exists.