lix02 commited on
Commit
a79543b
·
verified ·
1 Parent(s): c2e76a8

Upload 15 files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ resources/nginx-ui-logo-design.sketch filter=lfs diff=lfs merge=lfs -text
resources/demo/app.ini ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [app]
2
+ PageSize = 10
3
+ JwtSecret = 6EEB622E-5C73-4082-AF76-7BAC337772F2
4
+
5
+ [server]
6
+ Host = 0.0.0.0
7
+ Port = 9000
8
+ RunMode = release
9
+
10
+ [database]
11
+ Name = database
12
+
13
+ [auth]
14
+ IPWhiteList =
15
+ BanThresholdMinutes = 10
16
+ MaxAttempts = 10
17
+
18
+ [casdoor]
19
+ Endpoint =
20
+ ClientId =
21
+ ClientSecret =
22
+ CertificatePath =
23
+ Organization =
24
+ Application =
25
+ RedirectUri =
26
+
27
+ [cert]
28
+ Email = [email protected]
29
+ CADir = https://acme-staging-v02.api.letsencrypt.org/directory
30
+ RenewalInterval = 7
31
+ RecursiveNameservers = 8.8.8.8:53,1.1.1.1:53
32
+ HTTPChallengePort = 9180
33
+
34
+ [cluster]
35
+ Node =
36
+
37
+ [crypto]
38
+ Secret = 4a82fe17c5aab629007462b303c367d2863b7db28b95c8f869f2f815672d41d8
39
+
40
+ [http]
41
+ GithubProxy =
42
+ InsecureSkipVerify = false
43
+
44
+ [logrotate]
45
+ Enabled = false
46
+ CMD = logrotate /etc/logrotate.d/nginx
47
+ Interval = 1440
48
+
49
+ [nginx]
50
+ AccessLogPath =
51
+ ErrorLogPath =
52
+ LogDirWhiteList = /var/log/nginx
53
+ ConfigDir =
54
+ PIDPath =
55
+ TestConfigCmd =
56
+ ReloadCmd =
57
+ RestartCmd =
58
+
59
+ [node]
60
+ Name =
61
+ Secret = 57D079F2-CA8B-412A-B5C0-FDA291C13391
62
+ SkipInstallation = false
63
+ Demo = true
64
+
65
+ [openai]
66
+ BaseUrl =
67
+ Token =
68
+ Proxy =
69
+ Model = gpt-3.5-turbo
70
+
71
+ [terminal]
72
+ StartCmd = bash
73
+
74
+ [webauthn]
75
+ RPDisplayName =
76
+ RPID =
77
+ RPOrigins =
resources/demo/demo.db ADDED
Binary file (131 kB). View file
 
resources/demo/ojbk.me ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ upstream api-1 {
2
+ server 127.0.0.1:9000;
3
+ server 127.0.0.1:443;
4
+ }
5
+ upstream api-2 {
6
+ server 127.0.0.1:9003;
7
+ server 127.0.0.1:9005;
8
+ }
9
+ server {
10
+ listen 80;
11
+ listen [::]:80;
12
+ server_name ojbk.me;
13
+
14
+ access_log /var/log/nginx/ojbk.me.log;
15
+ error_log /var/log/nginx/ojbk.me.error.log;
16
+
17
+ location /.well-known/acme-challenge {
18
+ proxy_set_header Host $host;
19
+ proxy_set_header X-Real_IP $remote_addr;
20
+ proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
21
+ proxy_pass http://127.0.0.1:9180;
22
+ }
23
+
24
+ }
resources/development/entrypoint.sh ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ if [ "$(ls -A /etc/nginx)" = "" ]; then
4
+ echo "Initialing Nginx config dir"
5
+ cp -rp /usr/etc/nginx/* /etc/nginx/
6
+ echo "Initialed Nginx config dir"
7
+ fi
8
+
9
+ echo "export PATH=$PATH:/usr/local/go/bin:$(go env GOPATH)/bin" >> ~/.profile
10
+ source ~/.profile
11
+
12
+ nginx
13
+ cd /app && air
resources/development/sources.list ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
2
+ deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
3
+ # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
4
+ deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
5
+ # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
6
+ deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
7
+ # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
8
+ deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
9
+ # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
resources/docker/nginx-ui.conf ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ map $http_upgrade $connection_upgrade {
2
+ default upgrade;
3
+ '' close;
4
+ }
5
+
6
+ server {
7
+ listen 80;
8
+ server_name localhost; # your domain here
9
+ client_max_body_size 128M; # maximum upload size
10
+
11
+ location / {
12
+ proxy_set_header Host $host;
13
+ proxy_set_header X-Real-IP $remote_addr;
14
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
15
+ proxy_set_header X-Forwarded-Proto $scheme;
16
+ proxy_http_version 1.1;
17
+ proxy_set_header Upgrade $http_upgrade;
18
+ proxy_set_header Connection $connection_upgrade;
19
+ proxy_pass http://127.0.0.1:9000/;
20
+ }
21
+ }
resources/docker/nginx-ui.run ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/command/with-contenv sh
2
+ env
3
+ nginx-ui --config /etc/nginx-ui/app.ini
resources/docker/nginx.conf ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ user nginx;
2
+ worker_processes auto;
3
+
4
+ error_log /var/log/nginx/error.log notice;
5
+ error_log /var/log/nginx/error.local.log notice;
6
+ pid /var/run/nginx.pid;
7
+
8
+ events {
9
+ worker_connections 1024;
10
+ }
11
+
12
+ stream {
13
+ include /etc/nginx/streams-enabled/*;
14
+ }
15
+
16
+ http {
17
+ include /etc/nginx/mime.types;
18
+ default_type application/octet-stream;
19
+
20
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
21
+ '$status $body_bytes_sent "$http_referer" '
22
+ '"$http_user_agent" "$http_x_forwarded_for"';
23
+
24
+ access_log /var/log/nginx/access.log main;
25
+
26
+ sendfile on;
27
+ #tcp_nopush on;
28
+
29
+ keepalive_timeout 65;
30
+
31
+ gzip on;
32
+
33
+ include /etc/nginx/conf.d/*.conf;
34
+ include /etc/nginx/sites-enabled/*;
35
+ }
resources/logo.ai ADDED
The diff for this file is too large to render. See raw diff
 
resources/logo.png ADDED
resources/nginx-ui-logo-design.sketch ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9ce29430738863d945091ce7a5ce8d7b8d07f16b4147ae0e1d9adb6119b1f21
3
+ size 10443903
resources/screenshots/dashboard_en.png ADDED
resources/screenshots/dashboard_es.png ADDED
resources/screenshots/dashboard_zh_CN.png ADDED
resources/screenshots/dashboard_zh_TW.png ADDED