first commit
This commit is contained in:
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"baseFontSize": 16
|
||||||
|
}
|
||||||
Vendored
+15
@@ -0,0 +1,15 @@
|
|||||||
|
[
|
||||||
|
"file-explorer",
|
||||||
|
"global-search",
|
||||||
|
"switcher",
|
||||||
|
"graph",
|
||||||
|
"backlink",
|
||||||
|
"page-preview",
|
||||||
|
"note-composer",
|
||||||
|
"command-palette",
|
||||||
|
"editor-status",
|
||||||
|
"markdown-importer",
|
||||||
|
"word-count",
|
||||||
|
"open-with-default-app",
|
||||||
|
"file-recovery"
|
||||||
|
]
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
Vendored
+93
@@ -0,0 +1,93 @@
|
|||||||
|
{
|
||||||
|
"main": {
|
||||||
|
"id": "8a34247877f48c3a",
|
||||||
|
"type": "split",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"id": "357fba603d9f8482",
|
||||||
|
"type": "leaf",
|
||||||
|
"state": {
|
||||||
|
"type": "markdown",
|
||||||
|
"state": {
|
||||||
|
"file": "README.md",
|
||||||
|
"mode": "source"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"direction": "vertical"
|
||||||
|
},
|
||||||
|
"left": {
|
||||||
|
"id": "14e5b9a177192bc5",
|
||||||
|
"type": "split",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"id": "5c94a9d37308b17e",
|
||||||
|
"type": "tabs",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"id": "36bfcaf61dce390f",
|
||||||
|
"type": "leaf",
|
||||||
|
"state": {
|
||||||
|
"type": "file-explorer",
|
||||||
|
"state": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "c86591ceb9a77cac",
|
||||||
|
"type": "leaf",
|
||||||
|
"state": {
|
||||||
|
"type": "search",
|
||||||
|
"state": {
|
||||||
|
"query": "",
|
||||||
|
"matchingCase": false,
|
||||||
|
"explainSearch": false,
|
||||||
|
"collapseAll": false,
|
||||||
|
"extraContext": false,
|
||||||
|
"sortOrder": "alphabetical"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"direction": "horizontal",
|
||||||
|
"width": 300
|
||||||
|
},
|
||||||
|
"right": {
|
||||||
|
"id": "386754b134ca342d",
|
||||||
|
"type": "split",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"id": "042858336e17d256",
|
||||||
|
"type": "tabs",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"id": "e341806c4007e45e",
|
||||||
|
"type": "leaf",
|
||||||
|
"state": {
|
||||||
|
"type": "backlink",
|
||||||
|
"state": {
|
||||||
|
"file": "README.md",
|
||||||
|
"collapseAll": false,
|
||||||
|
"extraContext": false,
|
||||||
|
"sortOrder": "alphabetical",
|
||||||
|
"showSearch": false,
|
||||||
|
"searchQuery": "",
|
||||||
|
"backlinkCollapsed": false,
|
||||||
|
"unlinkedCollapsed": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"direction": "horizontal",
|
||||||
|
"width": 300,
|
||||||
|
"collapsed": true
|
||||||
|
},
|
||||||
|
"active": "357fba603d9f8482",
|
||||||
|
"lastOpenFiles": [
|
||||||
|
"README.md"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
[app]
|
||||||
|
port = 8666
|
||||||
|
debug = true
|
||||||
|
tokenTimeout = 43200
|
||||||
|
jwtSecret = TaZT61grR6V7A4JAJZlX47mc89lGCKYo
|
||||||
|
pwdSecret = oEjVsLBOtyMwxJRy2fXgM1ibfY9Paq6l
|
||||||
|
emailHandleUrl = "http://8.210.153.118:8665/check"
|
||||||
|
sendEmail= "wannengchongplatform@gmail.com"
|
||||||
|
sendEmailPassword= "zP40vxfjDBmmgq229D55"
|
||||||
|
noticeUrl = http://8.210.160.78:8066/notice/one
|
||||||
|
|
||||||
|
[mysql.system]
|
||||||
|
;https://github.com/go-sql-driver/mysql
|
||||||
|
host = 192.168.0.118
|
||||||
|
port = 3306
|
||||||
|
dbname = platform_system_db
|
||||||
|
username = root
|
||||||
|
password = YnHuUuYTSEdgv7
|
||||||
|
charset = utf8mb4
|
||||||
|
collation = utf8mb4_general_ci
|
||||||
|
loc = Asia/Shanghai
|
||||||
|
maxAllowedPacket = 8388608
|
||||||
|
timeout = 30s
|
||||||
|
readTimeout = 1m30s
|
||||||
|
writeTimeout = 1m30s
|
||||||
|
|
||||||
|
[mysql.register]
|
||||||
|
;https://github.com/go-sql-driver/mysql
|
||||||
|
host = 192.168.0.118
|
||||||
|
port = 3306
|
||||||
|
dbname = platform_register_db
|
||||||
|
username = root
|
||||||
|
password = YnHuUuYTSEdgv7
|
||||||
|
charset = utf8mb4
|
||||||
|
collation = utf8mb4_general_ci
|
||||||
|
loc = Asia/Shanghai
|
||||||
|
maxAllowedPacket = 8388608
|
||||||
|
timeout = 30s
|
||||||
|
readTimeout = 1m30s
|
||||||
|
writeTimeout = 1m30s
|
||||||
|
|
||||||
|
[redis.manage]
|
||||||
|
;https://godoc.org/github.com/go-redis/redis#Options
|
||||||
|
host = 127.0.0.1
|
||||||
|
port = 6377
|
||||||
|
password = nekopara999
|
||||||
|
database = 0
|
||||||
|
dialTimeout = 5
|
||||||
|
readTimeout = 3
|
||||||
|
writeTimeout = 3
|
||||||
|
idleTimeout = 300
|
||||||
|
poolSize = 10
|
||||||
|
minIdleConns = 10
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
platform_go:
|
||||||
|
image: golang:latest
|
||||||
|
container_name: client_go
|
||||||
|
working_dir: /apps
|
||||||
|
volumes:
|
||||||
|
- ./config.ini:/apps/config.ini
|
||||||
|
- ./client.bin:/apps/client.bin
|
||||||
|
environment:
|
||||||
|
TZ: "Asia/Shanghai"
|
||||||
|
ports:
|
||||||
|
- "8666:8666"
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10240k"
|
||||||
|
max-file: "10"
|
||||||
|
network_mode: "bridge"
|
||||||
|
command: ./client.bin
|
||||||
|
restart: always
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
version: "3.5"
|
||||||
|
|
||||||
|
services:
|
||||||
|
client-ui:
|
||||||
|
image: nginx:latest
|
||||||
|
container_name: client-ui
|
||||||
|
volumes:
|
||||||
|
- ./dist:/usr/share/nginx/html:ro
|
||||||
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
|
environment:
|
||||||
|
TZ: "Asia/Shanghai"
|
||||||
|
ports:
|
||||||
|
- 8665:80
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10240k"
|
||||||
|
max-file: "10"
|
||||||
|
network_mode: "bridge"
|
||||||
|
command: /bin/bash -c "nginx -g 'daemon off;'"
|
||||||
|
restart: always
|
||||||
|
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
charset utf-8;
|
||||||
|
server_tokens off;
|
||||||
|
|
||||||
|
gzip on;
|
||||||
|
gzip_min_length 1k;
|
||||||
|
gzip_comp_level 9;
|
||||||
|
gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml;
|
||||||
|
gzip_vary on;
|
||||||
|
gzip_disable "MSIE [1-6]\.";
|
||||||
|
|
||||||
|
upstream go.api {
|
||||||
|
server 192.168.0.118:8666;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80 default;
|
||||||
|
server_tokens off;
|
||||||
|
|
||||||
|
location /api {
|
||||||
|
proxy_pass http://go.api;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
||||||
|
rewrite ^/api/(.*)$ /$1 break;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user