PortIO/resources/views/admin/servers/create.blade.php

138 lines
5.9 KiB
PHP
Raw Normal View History

2023-05-14 07:42:18 +00:00
<x-app-layout>
<form action="{{ route('admin.servers.store') }}" method="post">
@csrf
<div class="row">
<div class="col">
2023-07-21 16:01:40 +00:00
<h4>服务器</h4>
2023-05-14 07:42:18 +00:00
<div class="mb-3">
<label for="serverName" class="form-label">服务器名称</label>
<input type="text" required class="form-control" id="serverName" placeholder="输入服务器名称,它将会被搜索到"
2023-07-21 16:01:40 +00:00
name="name">
2023-05-14 07:42:18 +00:00
</div>
2023-07-21 16:01:40 +00:00
<h4>Frps 信息</h4>
2023-05-14 07:42:18 +00:00
<div class="mb-3">
<label for="serverAddr" class="form-label">Frps 地址</label>
<input type="text" required class="form-control" id="serverAddr" name="server_address">
</div>
<div class="mb-3">
<label for="serverPort" class="form-label">Frps 端口</label>
<input type="text" required class="form-control" id="serverPort" name="server_port">
</div>
<div class="mb-3">
<label for="serverToken" class="form-label">Frps 令牌</label>
<input type="text" required class="form-control" id="serverToken" name="token">
</div>
</div>
<div class="col">
2023-07-21 16:01:40 +00:00
<h4>Frps Dashboard 配置</h4>
2023-05-14 07:42:18 +00:00
<div class="mb-3">
<label for="dashboardPort" class="form-label">端口</label>
<input type="text" required class="form-control" id="dashboardPort" name="dashboard_port"
2023-07-21 16:01:40 +00:00
value="7500">
2023-05-14 07:42:18 +00:00
</div>
<div class="mb-3">
<label for="dashboardUser" class="form-label">登录用户名</label>
<input type="text" required class="form-control" id="dashboardUser" name="dashboard_user"
2023-07-21 16:01:40 +00:00
value="admin">
2023-05-14 07:42:18 +00:00
</div>
<div class="mb-3">
<label for="dashboardPwd" class="form-label">密码</label>
<input type="text" required class="form-control" id="dashboardPwd" name="dashboard_password"
2023-07-21 16:01:40 +00:00
value="admin">
2023-05-14 07:42:18 +00:00
</div>
2023-07-21 16:01:40 +00:00
<h4>端口范围限制</h4>
2023-05-14 07:42:18 +00:00
<div class="input-group input-group-sm mb-3">
2023-07-21 16:01:40 +00:00
<input type="text" required class="form-control" placeholder="最小端口, 比如: 10000" name="min_port"
value="10000">
<input type="text" required class="form-control" placeholder="最大端口, 比如: 65535" name="max_port"
value="65535">
2023-05-14 07:42:18 +00:00
</div>
2023-07-21 16:01:40 +00:00
<h4>最多隧道数量</h4>
2023-05-14 07:42:18 +00:00
<div class="input-group input-group-sm mb-3">
2023-07-21 16:01:40 +00:00
<input type="text" required class="form-control" placeholder="最多隧道数量, 比如: 1024个隧道"
name="max_tunnels">
2023-05-14 07:42:18 +00:00
</div>
2023-07-21 16:01:40 +00:00
</div>
2023-05-14 07:42:18 +00:00
2023-07-21 16:01:40 +00:00
<div class="col">
<h4>隧道协议限制</h4>
2023-05-14 07:42:18 +00:00
<div class="form-check">
<input class="form-check-input" type="checkbox" name="allow_http" value="1" id="allow_http">
<label class="form-check-label" for="allow_http">
允许 HTTP
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="allow_https" value="1" id="allow_https">
<label class="form-check-label" for="allow_https">
允许 HTTPS
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="allow_tcp" value="1" id="allow_tcp">
<label class="form-check-label" for="allow_tcp">
允许 TCP
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="allow_udp" value="1" id="allow_udp">
<label class="form-check-label" for="allow_udp">
允许 UDP
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="allow_stcp" value="1"
2023-07-21 16:01:40 +00:00
id="allow_stcp">
2023-05-14 07:42:18 +00:00
<label class="form-check-label" for="allow_stcp">
允许 STCP
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="allow_xtcp" value="1"
2023-07-21 16:01:40 +00:00
id="allow_xtcp">
2023-05-14 07:42:18 +00:00
<label class="form-check-label" for="allow_xtcp">
允许 XTCP
</label>
</div>
2023-07-21 16:01:40 +00:00
<div class="form-check">
<input class="form-check-input" type="checkbox" name="allow_sudp" value="1"
id="allow_sudp">
<label class="form-check-label" for="allow_sudp">
允许 SUDP
</label>
2023-05-14 07:42:18 +00:00
</div>
2023-07-21 16:01:40 +00:00
<div class="form-check mt-3">
<input class="form-check-input" type="checkbox" name="is_china_mainland" value="1"
id="is_china_mainland">
<label class="form-check-label" for="is_china_mainland">
服务器是否位于中国大陆
</label>
</div>
2023-05-14 07:42:18 +00:00
2023-07-21 16:01:40 +00:00
<div class="d-grid mt-3">
2023-05-14 07:42:18 +00:00
<button type="submit" class="btn btn-primary mb-3">新建服务器</button>
</div>
</div>
</div>
</form>
</x-app-layout>