Skip to content

Commit

Permalink
feat: online read access log and error log
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Sep 1, 2022
1 parent 2816819 commit fea0bc7
Show file tree
Hide file tree
Showing 19 changed files with 307 additions and 121 deletions.
1 change: 1 addition & 0 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Nginx 网络管理界面,由 [0xJacky](https://jackyu.cn/) 与 [Hintay](https
- 在线查看服务器 CPU、内存、系统负载、磁盘使用率等指标
- 一键申请和自动续签 Let's encrypt 证书
- 在线编辑 Nginx 配置文件,编辑器支持 Nginx 配置语法高亮
- 在线查看 Nginx 日志
- 使用 Go 和 Vue 开发,发行版本为单个可执行的二进制文件
- 保存配置后自动测试配置文件并重载 Nginx
- 基于网页浏览器的高级命令行终端
Expand Down
1 change: 1 addition & 0 deletions README-zh_TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ Nginx 網路管理介面,由 [0xJacky](https://jackyu.cn/) 與 [Hintay](https
- 線上檢視伺服器 CPU、記憶體、系統負載、磁碟使用率等指標
- 一鍵申請和自動續簽 Let's encrypt 憑證
- 線上編輯 Nginx 配置檔案,編輯器支援 Nginx 配置語法突顯
- 線上查看 Nginx 日誌
- 使用 Go 和 Vue 開發,發行版本為單個可執行檔案
- 保存配置後自動測試配置檔案並重載 Nginx
- 基於網頁瀏覽器的高級命令行終端
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ URL:[https://nginxui.jackyu.cn](https://nginxui.jackyu.cn)
- Online view of server CPU, Memory, Load Average, Disk Usage and other indicators.
- One-click deployment and automatic renewal Let's Encrypt certificates.
- 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.
- Online view Nginx logs
- Written in Go and Vue, distribution is a single executable binary.
- Automatically test configuration file and reload nginx after saving configuration.
- Web Terminal
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ CGO_ENABLED=1 GOOS=linux CC=x86_64-unknown-linux-gnu-gcc \
"-X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go

docker build -t nginx-ui .
docker tag nginx-ui uozi/nginx-ui
docker push uozi/nginx-ui
# docker tag nginx-ui uozi/nginx-ui
# docker push uozi/nginx-ui
87 changes: 60 additions & 27 deletions frontend/src/language/en/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: src/routes/index.ts:92
#: src/routes/index.ts:116
msgid "About"
msgstr "About"

#: src/routes/index.ts:99
msgid "Access Logs"
msgstr ""

#: src/views/config/Config.vue:24 src/views/domain/DomainList.vue:42
#: src/views/user/User.vue:42
msgid "Action"
Expand All @@ -29,19 +33,23 @@ msgstr ""
msgid "Add Directive Below"
msgstr "Add Directive Below"

#: src/views/domain/ngx_conf/LocationEditor.vue:31
#: src/views/domain/ngx_conf/LocationEditor.vue:46
#: src/views/domain/ngx_conf/LocationEditor.vue:33
#: src/views/domain/ngx_conf/LocationEditor.vue:48
msgid "Add Location"
msgstr "Add Location"

#: src/routes/index.ts:54 src/views/domain/DomainAdd.vue:2
#: src/routes/index.ts:55 src/views/domain/DomainAdd.vue:2
msgid "Add Site"
msgstr "Add Site"

#: src/views/domain/DomainEdit.vue:19
msgid "Advance Mode"
msgstr "Advance Mode"

#: src/views/nginx_log/NginxLog.vue:100
msgid "All logs"
msgstr ""

#: src/components/StdDataDisplay/StdTable.vue:41
#: src/views/domain/DomainList.vue:27
#, fuzzy
Expand All @@ -52,11 +60,15 @@ msgstr "Are you sure you want to remove this directive?"
msgid "Are you sure you want to remove this directive?"
msgstr "Are you sure you want to remove this directive?"

#: src/views/domain/ngx_conf/LocationEditor.vue:17
#: src/views/domain/ngx_conf/LocationEditor.vue:9
#, fuzzy
msgid "Are you sure you want to remove this location?"
msgstr "Are you sure you want to remove this directive?"

#: src/views/nginx_log/NginxLog.vue:4
msgid "Auto Refresh"
msgstr ""

#: src/views/domain/cert/IssueCert.vue:78
msgid "Auto-renewal disabled for %{name}"
msgstr "Auto-renewal disabled for %{name}"
Expand All @@ -65,7 +77,7 @@ msgstr "Auto-renewal disabled for %{name}"
msgid "Auto-renewal enabled for %{name}"
msgstr "Auto-renewal enabled for %{name}"

#: src/views/domain/DomainEdit.vue:178
#: src/views/domain/DomainEdit.vue:178 src/views/nginx_log/NginxLog.vue:115
msgid "Back"
msgstr "Back"

Expand Down Expand Up @@ -104,9 +116,9 @@ msgid "Certificate Status"
msgstr "Certificate Status"

#: src/views/domain/ngx_conf/directive/DirectiveEditor.vue:29
#: src/views/domain/ngx_conf/LocationEditor.vue:33
#: src/views/domain/ngx_conf/LocationEditor.vue:7
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:156
#: src/views/domain/ngx_conf/LocationEditor.vue:21
#: src/views/domain/ngx_conf/LocationEditor.vue:35
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:161
msgid "Comments"
msgstr "Comments"

Expand All @@ -122,8 +134,8 @@ msgstr "Configurations"
msgid "Configure SSL"
msgstr "Configure SSL"

#: src/views/domain/ngx_conf/LocationEditor.vue:13
#: src/views/domain/ngx_conf/LocationEditor.vue:39
#: src/views/domain/ngx_conf/LocationEditor.vue:27
#: src/views/domain/ngx_conf/LocationEditor.vue:41
msgid "Content"
msgstr "Content"

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

#: src/routes/index.ts:26
#: src/routes/index.ts:27
msgid "Dashboard"
msgstr "Dashboard"

Expand Down Expand Up @@ -205,11 +217,11 @@ msgstr "Domain Config Created Successfully"
msgid "Edit %{n}"
msgstr "Edit %{n}"

#: src/routes/index.ts:76 src/views/config/ConfigEdit.vue:2
#: src/routes/index.ts:77 src/views/config/ConfigEdit.vue:2
msgid "Edit Configuration"
msgstr "Edit Configuration"

#: src/routes/index.ts:58
#: src/routes/index.ts:59
msgid "Edit Site"
msgstr "Edit Site"

Expand Down Expand Up @@ -244,6 +256,10 @@ msgstr "Enabled successfully"
msgid "Encrypt website with Let's Encrypt"
msgstr "Encrypt website with Let's Encrypt"

#: src/routes/index.ts:103
msgid "Error Logs"
msgstr ""

#: src/views/domain/cert/CertInfo.vue:17
msgid "Expiration Date: %{date}"
msgstr "Expiration Date: %{date}"
Expand All @@ -260,6 +276,10 @@ msgstr "Failed to enable %{msg}"
msgid "Failed to get certificate information"
msgstr ""

#: src/views/nginx_log/NginxLog.vue:7
msgid "Fetch"
msgstr ""

#: src/views/other/Error.vue:3 src/views/other/Error.vue:4
msgid "File Not Found"
msgstr "File Not Found"
Expand All @@ -276,11 +296,11 @@ msgstr ""
msgid "Getting the certificate, please wait..."
msgstr "Getting the certificate, please wait..."

#: src/routes/index.ts:19
#: src/routes/index.ts:20
msgid "Home"
msgstr "Home"

#: src/routes/index.ts:102 src/views/other/Install.vue:128
#: src/routes/index.ts:126 src/views/other/Install.vue:128
msgid "Install"
msgstr "Install"

Expand Down Expand Up @@ -314,7 +334,7 @@ msgstr "Location"
msgid "Locations"
msgstr "Locations"

#: src/routes/index.ts:108 src/views/other/Login.vue:103
#: src/routes/index.ts:132 src/views/other/Login.vue:103
msgid "Login"
msgstr "Login"

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

#: src/routes/index.ts:67
#: src/routes/index.ts:68
msgid "Manage Configs"
msgstr "Manage Configs"

#: src/routes/index.ts:42 src/views/domain/DomainList.vue:2
#: src/routes/index.ts:43 src/views/domain/DomainList.vue:2
msgid "Manage Sites"
msgstr "Manage Sites"

#: src/routes/index.ts:34 src/views/user/User.vue:2
#: src/routes/index.ts:35 src/views/user/User.vue:2
msgid "Manage Users"
msgstr "Manage Users"

Expand Down Expand Up @@ -388,18 +408,26 @@ msgstr "Network Total Receive"
msgid "Network Total Send"
msgstr "Network Total Send"

#: src/views/nginx_log/NginxLog.vue:103
msgid "New logs"
msgstr ""

#: src/views/domain/DomainAdd.vue:137
msgid "Next"
msgstr "Next"

#: src/routes/index.ts:93 src/views/nginx_log/NginxLog.vue:2
msgid "Nginx Log"
msgstr ""

#: src/components/StdDataDisplay/StdTable.vue:39
#: src/views/domain/DomainList.vue:25
#: src/views/domain/ngx_conf/directive/DirectiveEditor.vue:17
#: src/views/domain/ngx_conf/LocationEditor.vue:19
#: src/views/domain/ngx_conf/LocationEditor.vue:11
msgid "No"
msgstr "No"

#: src/routes/index.ts:114 src/routes/index.ts:116
#: src/routes/index.ts:138 src/routes/index.ts:140
msgid "Not Found"
msgstr "Not Found"

Expand Down Expand Up @@ -441,8 +469,8 @@ msgstr "Password"
msgid "Password (*)"
msgstr "Password (*)"

#: src/views/domain/ngx_conf/LocationEditor.vue:10
#: src/views/domain/ngx_conf/LocationEditor.vue:36
#: src/views/domain/ngx_conf/LocationEditor.vue:24
#: src/views/domain/ngx_conf/LocationEditor.vue:38
msgid "Path"
msgstr "Path"

Expand Down Expand Up @@ -552,7 +580,12 @@ msgstr "server_name parameters more than one"
msgid "Single Directive"
msgstr "Single Directive"

#: src/routes/index.ts:50
#: src/routes/index.ts:107
#, fuzzy
msgid "Site Logs"
msgstr "Sites List"

#: src/routes/index.ts:51
msgid "Sites List"
msgstr "Sites List"

Expand All @@ -577,7 +610,7 @@ msgstr "Swap"
msgid "Table"
msgstr "Enabled"

#: src/routes/index.ts:84 src/views/pty/Terminal.vue:2
#: src/routes/index.ts:85 src/views/pty/Terminal.vue:2
msgid "Terminal"
msgstr "Terminal"

Expand Down Expand Up @@ -636,7 +669,7 @@ msgid "Writing certificate to disk"
msgstr ""

#: src/views/domain/ngx_conf/directive/DirectiveEditor.vue:16
#: src/views/domain/ngx_conf/LocationEditor.vue:18
#: src/views/domain/ngx_conf/LocationEditor.vue:10
msgid "Yes"
msgstr "Yes"

Expand Down
Loading

0 comments on commit fea0bc7

Please sign in to comment.