Initial commit
This commit is contained in:
@@ -0,0 +1,181 @@
|
||||
82.158.226.4
|
||||
|
||||
先删除 ssh 密钥和会话,防止第一次链接失败。
|
||||
|
||||
# 1Panel
|
||||
|
||||
[1Panel - 现代化、开源的Linux服务器运维管理面板](https://1panel.cn/)
|
||||
|
||||
```
|
||||
域名访问: https://1panel.excalicode.org
|
||||
外部地址: http://82.158.226.4:31693
|
||||
内部地址: http://82.158.226.4:31693
|
||||
面板用户: excalicode
|
||||
面板密码: 6cd500f202
|
||||
```
|
||||
|
||||
DNS 账户
|
||||
|
||||
```
|
||||
MPLkv5dlbyKh_q0DdvH5ECxaUHVr5BVg0Ogf5AOH
|
||||
```
|
||||
|
||||
1. cloudflare DNS 添加记录
|
||||
2. 在 面板设置 - 安全 里关掉安全入口,对绑定域名后用域名访问面板友好
|
||||
3. 为 1panel.excalicode.org 申请证书
|
||||
4. 在 Cloudflare 中先设定好 Origin Rules 以准备将面板域名请求自动重写到 1Panel 端口,目标端口: 选择 重写到 面板端口号
|
||||
5. 在 1Panel 设置 SSL、绑定域名
|
||||
6. 在面板中设置 ssh 管理,增加安全性
|
||||
|
||||
一些建议设置
|
||||
|
||||
```
|
||||
在 Cloudflare 中将 SSL/TLS 加密模式改为完全(严格),并修改一些其他设置
|
||||
在 Cloudflare 的侧栏点击 SSL/TLS
|
||||
选择 完全(严格)
|
||||
在侧栏点击 边缘证书
|
||||
开启下列选项
|
||||
始终使用 HTTPS
|
||||
随机加密
|
||||
TLS 1.3
|
||||
自动 HTTPS 重写
|
||||
证书透明度监视
|
||||
```
|
||||
|
||||
# 安装 Openresty
|
||||
|
||||
# sub-store
|
||||
|
||||
docker-compose.yml
|
||||
|
||||
```yaml
|
||||
services:
|
||||
sub-store:
|
||||
image: xream/sub-store:http-meta
|
||||
container_name: sub-store
|
||||
restart: always
|
||||
network_mode: host
|
||||
environment:
|
||||
SUB_STORE_BACKEND_API_HOST: 127.0.0.1
|
||||
SUB_STORE_BACKEND_API_PORT: 3001
|
||||
SUB_STORE_BACKEND_MERGE: true
|
||||
SUB_STORE_FRONTEND_BACKEND_PATH: /PVM!xwm7hkz4hek2xjy
|
||||
PORT: 9876
|
||||
HOST: 127.0.0.1
|
||||
volumes:
|
||||
- /opt/docker/data/sub-store:/opt/app/data
|
||||
```
|
||||
|
||||
在 Openresty 中反向代理 3001
|
||||
|
||||
访问地址
|
||||
|
||||
```
|
||||
https://sub-store.excalicode.org?api=https://sub-store.excalicode.org/PVM!xwm7hkz4hek2xjy
|
||||
```
|
||||
|
||||
# 测试工具
|
||||
|
||||
```
|
||||
bash <(curl -sL https://run.NodeQuality.com)
|
||||
```
|
||||
|
||||
# MySQL
|
||||
|
||||
```
|
||||
ykz2WKZ@vke6rmk*req
|
||||
```
|
||||
|
||||
# Redis
|
||||
|
||||
```
|
||||
jgw5wpe!HVB@vem2wmp
|
||||
```
|
||||
|
||||
# SUI
|
||||
|
||||
安装
|
||||
|
||||
[节点搭建](https://bulianglin.com/archives/nicename.html)
|
||||
|
||||
```
|
||||
bash <(curl -Ls https://raw.githubusercontent.com/alireza0/s-ui/master/install.sh)
|
||||
```
|
||||
|
||||
```
|
||||
###############################################
|
||||
username:Yha0HLb5
|
||||
password:pEJ3HHa7
|
||||
###############################################
|
||||
if you forgot your login info,you can type s-ui for configuration menu
|
||||
reset admin credentials success
|
||||
First admin credentials:
|
||||
Username: Yha0HLb5
|
||||
Password: pEJ3HHa7
|
||||
Created symlink /etc/systemd/system/multi-user.target.wants/s-ui.service → /etc/systemd/system/s-ui.service.
|
||||
s-ui vv1.3.7 installation finished, it is up and running now...
|
||||
You may access the Panel with following URL(s):
|
||||
Local address:
|
||||
http://82.158.226.4:2095/app/
|
||||
http://172.17.0.1:2095/app/
|
||||
http://172.18.0.1:2095/app/
|
||||
|
||||
Global address:
|
||||
http://82.158.226.4:2095/app/
|
||||
|
||||
|
||||
The OS release is: ubuntu
|
||||
S-UI Control Menu Usage
|
||||
------------------------------------------
|
||||
SUBCOMMANDS:
|
||||
s-ui - Admin Management Script
|
||||
s-ui start - Start s-ui
|
||||
s-ui stop - Stop s-ui
|
||||
s-ui restart - Restart s-ui
|
||||
s-ui status - Current Status of s-ui
|
||||
s-ui enable - Enable Autostart on OS Startup
|
||||
s-ui disable - Disable Autostart on OS Startup
|
||||
s-ui log - Check s-ui Logs
|
||||
s-ui update - Update
|
||||
s-ui install - Install
|
||||
s-ui uninstall - Uninstall
|
||||
s-ui help - Control Menu Usage
|
||||
------------------------------------------
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
for d in cdn.userway.org intel.com s.mp.marsflag.com ts4.tc.mm.bing.net apps.mzstatic.com beacon.gtv-pub.com mscom.demdex.net www.intel.com go.microsoft.com logx.optimizely.com ; do t1=$(date +%s%3N); timeout 1 openssl s_client -connect $d:443 -servername $d </dev/null &>/dev/null && t2=$(date +%s%3N) && echo "$d: $((t2 - t1)) ms" || echo "$d: timeout"; done
|
||||
```
|
||||
|
||||
```
|
||||
apps.apple.com
|
||||
```
|
||||
|
||||
s-ui 配置信息
|
||||
|
||||
```
|
||||
curl --location 'http://82.158.226.4:2095/app/apiv2/load' \
|
||||
--header 'Token: HkpCXP8AkxqOjKbo29KdnrlPrlxmNksW'
|
||||
```
|
||||
|
||||
# excalicode
|
||||
|
||||
服务用户
|
||||
|
||||
```
|
||||
http://82.158.226.4/
|
||||
ibs
|
||||
8GE6Ccs7kWwiSzWA
|
||||
```
|
||||
|
||||
```
|
||||
/opt/1panel/www/sites/82.158.226.4/
|
||||
```
|
||||
|
||||
# gitea
|
||||
|
||||
```
|
||||
数据库密码
|
||||
ykz2WKZ@vke6rmk*req
|
||||
```
|
||||
Reference in New Issue
Block a user