FastGateway provides basic management services, including simple login authorization and real-time configuration management, thereby enabling the management of dynamic routing.
Document Language: English | 简体中文
- Login authorization
- Automatic HTTPS certificate application
- Automatic HTTPS certificate renewal
- Dashboard monitoring
- Static file service
- Single service proxy
- Cluster proxy
- Request source analysis
- Support for YAML import/export
- Support for custom rate limiting policies
- Support for black and white lists
- Asp.Net 8.0 for providing basic services
- Yarp for providing reverse proxy services
- FreeSql for database services
- JWT for login authorization services
- MiniApis for providing WebApi services
- reset-css for resetting default browser styles
- semi for providing basic components
- react-router-dom for routing management
docker run -d --restart=always --name=gateway-api -e PASSWORD=Aa123456 -p 8080:8080 -p 80:80 -p 443:443 -v $(pwd)/data:/data/ hejiale010426/gateway-api:v1.0.0services:
gateway-api:
image: hejiale010426/gateway-api:v1.0.0
restart: always
container_name: gateway-api
environment:
PASSWORD: Aa123456
ports:
- 8080:8080 # Management interface for web client
- 80:80 # HTTP proxy port
- 443:443 # HTTPS proxy port
volumes:
- ./data:/data/
- ./certs:/app/certs/If no password is provided, the default is:
Password: Aa123456
services:
gateway-api:
image: hejiale010426/gateway-api:v1.0.0-h3
restart: always
container_name: gateway-api
environment:
PASSWORD: Aa123456
ports:
- 8080:8080 # Web management end
- 80:80 # HTTP proxy port
- 443:443/udp # HTTPS proxy port
- 443:443/tcp # HTTPS proxy port HTTP3 requires both UDP and TCP to be enabled, please check if the firewall settings allow this
volumes:
- ./data:/data/
- ./certs:/app/certs/Download the Linux zip file, then unzip the program, and use nano to create fastgateway.service
nano /etc/systemd/system/fastgateway.serviceRemember to replace the configuration when filling in the following content:
[Unit]
Description=FastGateway
[Service]
WorkingDirectory=Your unzipped directory
ExecStart=/usr/bin/dotnet Your unzipped directory/FastGateway.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnet-fastgateway
User=root
Environment=ASPNETCORE_ENVIRONMENT=Production
[Install]
WantedBy=multi-user.targetNext, reload systemd to make the new service unit file take effect:
systemctl daemon-reloadNow you can start the service:
systemctl start fastgateway.serviceTo enable the service to start automatically at system boot, enable it:
systemctl enable fastgateway.serviceYou can check the status of the service with the following command:
systemctl status fastgateway.serviceIf you need to stop the service, you can use:
systemctl stop fastgateway.serviceIf you have made changes to the service and need to reload the configuration, you can restart the service:
systemctl restart fastgateway.service- ip2region.xdb for offline IP attribution