FastGateway provides basic management services, including simple login authorization and real-time configuration management, thereby enabling the management of dynamic routing.
Document Language: English | 简体中文
docker run -d --restart=always --name=gateway-api -e PASSWORD=Aa123456 -p 8080:8080 -p 80:80 -p 443:443 -v $(pwd)/data:/data/ registry.cn-shenzhen.aliyuncs.com/tokengo/gateway-api:v1.0.0
services:
gateway-api:
image: registry.cn-shenzhen.aliyuncs.com/tokengo/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: registry.cn-shenzhen.aliyuncs.com/tokengo/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/
systemd
to Start Services on LinuxDownload the Linux zip file, then unzip the program, and use nano to create fastgateway.service
nano /etc/systemd/system/fastgateway.service
Remember 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=www-data
Environment=ASPNETCORE_ENVIRONMENT=Production
[Install]
WantedBy=multi-user.target
Next, reload systemd to make the new service unit file take effect:
systemctl daemon-reload
Now you can start the service:
systemctl start fastgateway.service
To enable the service to start automatically at system boot, enable it:
systemctl enable fastgateway.service
You can check the status of the service with the following command:
systemctl status fastgateway.service
If you need to stop the service, you can use:
systemctl stop fastgateway.service
If you have made changes to the service and need to reload the configuration, you can restart the service:
systemctl restart fastgateway.service
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。