Skip to content

Commit fea0bc7

Browse files
committed
feat: online read access log and error log
1 parent 2816819 commit fea0bc7

File tree

19 files changed

+307
-121
lines changed

19 files changed

+307
-121
lines changed

README-zh_CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Nginx 网络管理界面,由 [0xJacky](https://jackyu.cn/) 与 [Hintay](https
7777
- 在线查看服务器 CPU、内存、系统负载、磁盘使用率等指标
7878
- 一键申请和自动续签 Let's encrypt 证书
7979
- 在线编辑 Nginx 配置文件,编辑器支持 Nginx 配置语法高亮
80+
- 在线查看 Nginx 日志
8081
- 使用 Go 和 Vue 开发,发行版本为单个可执行的二进制文件
8182
- 保存配置后自动测试配置文件并重载 Nginx
8283
- 基于网页浏览器的高级命令行终端

README-zh_TW.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Nginx 網路管理介面,由 [0xJacky](https://jackyu.cn/) 與 [Hintay](https
7979
- 線上檢視伺服器 CPU、記憶體、系統負載、磁碟使用率等指標
8080
- 一鍵申請和自動續簽 Let's encrypt 憑證
8181
- 線上編輯 Nginx 配置檔案,編輯器支援 Nginx 配置語法突顯
82+
- 線上查看 Nginx 日誌
8283
- 使用 Go 和 Vue 開發,發行版本為單個可執行檔案
8384
- 保存配置後自動測試配置檔案並重載 Nginx
8485
- 基於網頁瀏覽器的高級命令行終端

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ URL:[https://nginxui.jackyu.cn](https://nginxui.jackyu.cn)
7575
- Online view of server CPU, Memory, Load Average, Disk Usage and other indicators.
7676
- One-click deployment and automatic renewal Let's Encrypt certificates.
7777
- Online editing websites configurations with our self-designed **NgxConfigEditor** which is a user-friendly block editor or **Ace Code Editor** which support highlight nginx configuration syntax.
78+
- Online view Nginx logs
7879
- Written in Go and Vue, distribution is a single executable binary.
7980
- Automatically test configuration file and reload nginx after saving configuration.
8081
- Web Terminal

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ CGO_ENABLED=1 GOOS=linux CC=x86_64-unknown-linux-gnu-gcc \
44
"-X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go
55

66
docker build -t nginx-ui .
7-
docker tag nginx-ui uozi/nginx-ui
8-
docker push uozi/nginx-ui
7+
# docker tag nginx-ui uozi/nginx-ui
8+
# docker push uozi/nginx-ui

frontend/src/language/en/app.po

Lines changed: 60 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ msgstr ""
99
"Content-Transfer-Encoding: 8bit\n"
1010
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1111

12-
#: src/routes/index.ts:92
12+
#: src/routes/index.ts:116
1313
msgid "About"
1414
msgstr "About"
1515

16+
#: src/routes/index.ts:99
17+
msgid "Access Logs"
18+
msgstr ""
19+
1620
#: src/views/config/Config.vue:24 src/views/domain/DomainList.vue:42
1721
#: src/views/user/User.vue:42
1822
msgid "Action"
@@ -29,19 +33,23 @@ msgstr ""
2933
msgid "Add Directive Below"
3034
msgstr "Add Directive Below"
3135

32-
#: src/views/domain/ngx_conf/LocationEditor.vue:31
33-
#: src/views/domain/ngx_conf/LocationEditor.vue:46
36+
#: src/views/domain/ngx_conf/LocationEditor.vue:33
37+
#: src/views/domain/ngx_conf/LocationEditor.vue:48
3438
msgid "Add Location"
3539
msgstr "Add Location"
3640

37-
#: src/routes/index.ts:54 src/views/domain/DomainAdd.vue:2
41+
#: src/routes/index.ts:55 src/views/domain/DomainAdd.vue:2
3842
msgid "Add Site"
3943
msgstr "Add Site"
4044

4145
#: src/views/domain/DomainEdit.vue:19
4246
msgid "Advance Mode"
4347
msgstr "Advance Mode"
4448

49+
#: src/views/nginx_log/NginxLog.vue:100
50+
msgid "All logs"
51+
msgstr ""
52+
4553
#: src/components/StdDataDisplay/StdTable.vue:41
4654
#: src/views/domain/DomainList.vue:27
4755
#, fuzzy
@@ -52,11 +60,15 @@ msgstr "Are you sure you want to remove this directive?"
5260
msgid "Are you sure you want to remove this directive?"
5361
msgstr "Are you sure you want to remove this directive?"
5462

55-
#: src/views/domain/ngx_conf/LocationEditor.vue:17
63+
#: src/views/domain/ngx_conf/LocationEditor.vue:9
5664
#, fuzzy
5765
msgid "Are you sure you want to remove this location?"
5866
msgstr "Are you sure you want to remove this directive?"
5967

68+
#: src/views/nginx_log/NginxLog.vue:4
69+
msgid "Auto Refresh"
70+
msgstr ""
71+
6072
#: src/views/domain/cert/IssueCert.vue:78
6173
msgid "Auto-renewal disabled for %{name}"
6274
msgstr "Auto-renewal disabled for %{name}"
@@ -65,7 +77,7 @@ msgstr "Auto-renewal disabled for %{name}"
6577
msgid "Auto-renewal enabled for %{name}"
6678
msgstr "Auto-renewal enabled for %{name}"
6779

68-
#: src/views/domain/DomainEdit.vue:178
80+
#: src/views/domain/DomainEdit.vue:178 src/views/nginx_log/NginxLog.vue:115
6981
msgid "Back"
7082
msgstr "Back"
7183

@@ -104,9 +116,9 @@ msgid "Certificate Status"
104116
msgstr "Certificate Status"
105117

106118
#: src/views/domain/ngx_conf/directive/DirectiveEditor.vue:29
107-
#: src/views/domain/ngx_conf/LocationEditor.vue:33
108-
#: src/views/domain/ngx_conf/LocationEditor.vue:7
109-
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:156
119+
#: src/views/domain/ngx_conf/LocationEditor.vue:21
120+
#: src/views/domain/ngx_conf/LocationEditor.vue:35
121+
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:161
110122
msgid "Comments"
111123
msgstr "Comments"
112124

@@ -122,8 +134,8 @@ msgstr "Configurations"
122134
msgid "Configure SSL"
123135
msgstr "Configure SSL"
124136

125-
#: src/views/domain/ngx_conf/LocationEditor.vue:13
126-
#: src/views/domain/ngx_conf/LocationEditor.vue:39
137+
#: src/views/domain/ngx_conf/LocationEditor.vue:27
138+
#: src/views/domain/ngx_conf/LocationEditor.vue:41
127139
msgid "Content"
128140
msgstr "Content"
129141

@@ -147,7 +159,7 @@ msgstr "Created at"
147159
msgid "Creating client facilitates communication with the CA server"
148160
msgstr ""
149161

150-
#: src/routes/index.ts:26
162+
#: src/routes/index.ts:27
151163
msgid "Dashboard"
152164
msgstr "Dashboard"
153165

@@ -205,11 +217,11 @@ msgstr "Domain Config Created Successfully"
205217
msgid "Edit %{n}"
206218
msgstr "Edit %{n}"
207219

208-
#: src/routes/index.ts:76 src/views/config/ConfigEdit.vue:2
220+
#: src/routes/index.ts:77 src/views/config/ConfigEdit.vue:2
209221
msgid "Edit Configuration"
210222
msgstr "Edit Configuration"
211223

212-
#: src/routes/index.ts:58
224+
#: src/routes/index.ts:59
213225
msgid "Edit Site"
214226
msgstr "Edit Site"
215227

@@ -244,6 +256,10 @@ msgstr "Enabled successfully"
244256
msgid "Encrypt website with Let's Encrypt"
245257
msgstr "Encrypt website with Let's Encrypt"
246258

259+
#: src/routes/index.ts:103
260+
msgid "Error Logs"
261+
msgstr ""
262+
247263
#: src/views/domain/cert/CertInfo.vue:17
248264
msgid "Expiration Date: %{date}"
249265
msgstr "Expiration Date: %{date}"
@@ -260,6 +276,10 @@ msgstr "Failed to enable %{msg}"
260276
msgid "Failed to get certificate information"
261277
msgstr ""
262278

279+
#: src/views/nginx_log/NginxLog.vue:7
280+
msgid "Fetch"
281+
msgstr ""
282+
263283
#: src/views/other/Error.vue:3 src/views/other/Error.vue:4
264284
msgid "File Not Found"
265285
msgstr "File Not Found"
@@ -276,11 +296,11 @@ msgstr ""
276296
msgid "Getting the certificate, please wait..."
277297
msgstr "Getting the certificate, please wait..."
278298

279-
#: src/routes/index.ts:19
299+
#: src/routes/index.ts:20
280300
msgid "Home"
281301
msgstr "Home"
282302

283-
#: src/routes/index.ts:102 src/views/other/Install.vue:128
303+
#: src/routes/index.ts:126 src/views/other/Install.vue:128
284304
msgid "Install"
285305
msgstr "Install"
286306

@@ -314,7 +334,7 @@ msgstr "Location"
314334
msgid "Locations"
315335
msgstr "Locations"
316336

317-
#: src/routes/index.ts:108 src/views/other/Login.vue:103
337+
#: src/routes/index.ts:132 src/views/other/Login.vue:103
318338
msgid "Login"
319339
msgstr "Login"
320340

@@ -334,15 +354,15 @@ msgstr ""
334354
"Make sure you have configured a reverse proxy for .well-known directory to "
335355
"HTTPChallengePort (default: 9180) before getting the certificate."
336356

337-
#: src/routes/index.ts:67
357+
#: src/routes/index.ts:68
338358
msgid "Manage Configs"
339359
msgstr "Manage Configs"
340360

341-
#: src/routes/index.ts:42 src/views/domain/DomainList.vue:2
361+
#: src/routes/index.ts:43 src/views/domain/DomainList.vue:2
342362
msgid "Manage Sites"
343363
msgstr "Manage Sites"
344364

345-
#: src/routes/index.ts:34 src/views/user/User.vue:2
365+
#: src/routes/index.ts:35 src/views/user/User.vue:2
346366
msgid "Manage Users"
347367
msgstr "Manage Users"
348368

@@ -388,18 +408,26 @@ msgstr "Network Total Receive"
388408
msgid "Network Total Send"
389409
msgstr "Network Total Send"
390410

411+
#: src/views/nginx_log/NginxLog.vue:103
412+
msgid "New logs"
413+
msgstr ""
414+
391415
#: src/views/domain/DomainAdd.vue:137
392416
msgid "Next"
393417
msgstr "Next"
394418

419+
#: src/routes/index.ts:93 src/views/nginx_log/NginxLog.vue:2
420+
msgid "Nginx Log"
421+
msgstr ""
422+
395423
#: src/components/StdDataDisplay/StdTable.vue:39
396424
#: src/views/domain/DomainList.vue:25
397425
#: src/views/domain/ngx_conf/directive/DirectiveEditor.vue:17
398-
#: src/views/domain/ngx_conf/LocationEditor.vue:19
426+
#: src/views/domain/ngx_conf/LocationEditor.vue:11
399427
msgid "No"
400428
msgstr "No"
401429

402-
#: src/routes/index.ts:114 src/routes/index.ts:116
430+
#: src/routes/index.ts:138 src/routes/index.ts:140
403431
msgid "Not Found"
404432
msgstr "Not Found"
405433

@@ -441,8 +469,8 @@ msgstr "Password"
441469
msgid "Password (*)"
442470
msgstr "Password (*)"
443471

444-
#: src/views/domain/ngx_conf/LocationEditor.vue:10
445-
#: src/views/domain/ngx_conf/LocationEditor.vue:36
472+
#: src/views/domain/ngx_conf/LocationEditor.vue:24
473+
#: src/views/domain/ngx_conf/LocationEditor.vue:38
446474
msgid "Path"
447475
msgstr "Path"
448476

@@ -552,7 +580,12 @@ msgstr "server_name parameters more than one"
552580
msgid "Single Directive"
553581
msgstr "Single Directive"
554582

555-
#: src/routes/index.ts:50
583+
#: src/routes/index.ts:107
584+
#, fuzzy
585+
msgid "Site Logs"
586+
msgstr "Sites List"
587+
588+
#: src/routes/index.ts:51
556589
msgid "Sites List"
557590
msgstr "Sites List"
558591

@@ -577,7 +610,7 @@ msgstr "Swap"
577610
msgid "Table"
578611
msgstr "Enabled"
579612

580-
#: src/routes/index.ts:84 src/views/pty/Terminal.vue:2
613+
#: src/routes/index.ts:85 src/views/pty/Terminal.vue:2
581614
msgid "Terminal"
582615
msgstr "Terminal"
583616

@@ -636,7 +669,7 @@ msgid "Writing certificate to disk"
636669
msgstr ""
637670

638671
#: src/views/domain/ngx_conf/directive/DirectiveEditor.vue:16
639-
#: src/views/domain/ngx_conf/LocationEditor.vue:18
672+
#: src/views/domain/ngx_conf/LocationEditor.vue:10
640673
msgid "Yes"
641674
msgstr "Yes"
642675

0 commit comments

Comments
 (0)