location / { proxy_pass http://127.0.0.1:12345; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; client_max_body_size 1G; proxy_buffers 4 4k; proxy_busy_buffers_size 4k; sendfile on; tcp_nopush on; }
- 安装
bash <(curl -Ls https://raw.githubusercontent.com/co2f2e/FileCodeBox/main/bash/install_filecodebox.sh)
- 卸载
bash <(curl -Ls https://raw.githubusercontent.com/co2f2e/FileCodeBox/main/bash/uninstall_filecodebox.sh)
操作 | 命令 |
---|---|
启动服务 | sudo systemctl start filecodebox |
停止服务 | sudo systemctl stop filecodebox |
重启服务 | sudo systemctl restart filecodebox |
查看状态 | sudo systemctl status filecodebox |
查看日志 | sudo journalctl -u filecodebox -f |
开机自启动 | sudo systemctl enable filecodebox |
关闭开机启动 | sudo systemctl disable filecodebox |
- 访问地址
https://yourdomain
- 后台登录地址
https://yourdomain/#/login
初次使用务必修改密码FileCodeBox2023
- Debian12
- NGINX
- SSL