Skip to content

[pull] dev from 0xJacky:dev #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 516 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
516 commits
Select commit Hold shift + click to select a range
1a21c84
chore: update `risefront` with log handler
Hintay May 6, 2025
40e8d6c
enhance: db init
0xJacky May 6, 2025
7355353
fix(upgrader): correct old executable path handling for non-Windows s…
0xJacky May 6, 2025
7e027bc
chore: update translations by i18n-gettext
akinoccc May 6, 2025
b93bab4
Merge pull request #1003 from akinoccc/dev
akinoccc May 6, 2025
ff88d19
chore: update translations by i18n-gettext
akinoccc May 6, 2025
1330888
Merge pull request #1004 from akinoccc/dev
akinoccc May 6, 2025
b2ffe9c
fix(ota): determine if running in official Docker environment
0xJacky May 7, 2025
56ffade
fix(self_check): remove redundant file existence check in CheckPIDPat…
0xJacky May 7, 2025
9b7d054
fix(version): update API URL
0xJacky May 7, 2025
3461ad3
fix(ci): build documents
0xJacky May 7, 2025
39daf0b
fix(upgrader): remove unused settings import and simplify GitHub prox…
0xJacky May 7, 2025
13732ff
chore: update docs
0xJacky May 7, 2025
d772dcf
chore: update deps
0xJacky May 7, 2025
db29f2e
chore: update translations
0xJacky May 7, 2025
5fdd85a
feat: add support for init.d and OpenRC service management #335, #988
0xJacky May 7, 2025
61d9bb4
Merge pull request #1008 from 0xJacky/dev
0xJacky May 7, 2025
c797a1b
chore: update docs #1009
0xJacky May 7, 2025
ea0dbfe
Add README in Japanese
GitHub30 May 7, 2025
dfc131d
Merge pull request #1010 from 0xJacky/dev
0xJacky May 7, 2025
8246e6e
Add README in Japanese
GitHub30 May 7, 2025
9d39b76
fix(install): update Nginx UI service status check from "started" to …
0xJacky May 7, 2025
3b674fc
Merge pull request #1011 from 0xJacky/dev
0xJacky May 7, 2025
ed4cd13
chore: update install.sh
0xJacky May 7, 2025
7718718
Merge pull request #1012 from 0xJacky/dev
0xJacky May 7, 2025
a75a5b7
chore: update install.sh
0xJacky May 7, 2025
1570771
Merge pull request #1014 from 0xJacky/dev
0xJacky May 7, 2025
1ba1da0
chore: use nginx.GetConfEntryPath() #1013
0xJacky May 7, 2025
a2e1c57
chore: update install.sh
0xJacky May 7, 2025
7c791f3
Merge pull request #1015 from 0xJacky/dev
0xJacky May 7, 2025
3bbe47e
Add README in Japanese
GitHub30 May 7, 2025
b23a8fc
Add README in Japanese
GitHub30 May 7, 2025
fbc800f
fix: site and stream unique ke y create issue #1017
0xJacky May 7, 2025
ed82069
chore: update docs
0xJacky May 7, 2025
71bc9c1
Merge pull request #1016 from GitHub30/patch-1
Hintay May 7, 2025
7482be9
fix: add external notify error #1018
0xJacky May 7, 2025
c5274a7
feat(external-notify): add gotify #1018
0xJacky May 7, 2025
0f09a0b
fix(external-notify): implement columns for external notification set…
0xJacky May 7, 2025
482e66b
chore: update deps
0xJacky May 7, 2025
fd501a6
refactor(install-script): make compatible with ash
Hintay May 7, 2025
d7baa4d
feat(install-script): auto install `OpenRC` on Alpine Linux if needed
Hintay May 7, 2025
635b2c2
fix: casdoor login issue #1022
0xJacky May 8, 2025
fc3b834
chore: update deps
0xJacky May 8, 2025
e500ce9
chore: update docs
0xJacky May 8, 2025
291c7f0
refactor: lego without large sdk #988
0xJacky May 8, 2025
f7ef33e
chore: fix build on macOS (golang/go#73617)
Hintay May 8, 2025
908cb74
chore(deps): update all non-major dependencies
renovate[bot] May 8, 2025
c92b31e
Merge pull request #1026 from 0xJacky/renovate/all-minor-patch
0xJacky May 8, 2025
6b40d02
feat: add `pidfile` parameter to support OpenRC
Hintay May 8, 2025
7f6399a
chore: update `selfupdate` with `io.TeeReader`
Hintay May 8, 2025
c59b81e
feat(lark): supports custom domain #1027
0xJacky May 9, 2025
202ac03
feat(self-check): check stream if stream loaded #1028
0xJacky May 9, 2025
5b0cbf9
feat: add env for ignore docker socket check #1024
0xJacky May 9, 2025
adf6f80
feat(modules): retrieve nginx modules status
0xJacky May 9, 2025
c241122
fix(cert): maybe panic when add or modify #1034
0xJacky May 9, 2025
d263340
feat(nginx-dashboard): add modules table
0xJacky May 9, 2025
bae805a
chore: update `lego`
0xJacky May 10, 2025
ad00ed4
fix(cert): mutex status not broadcast
0xJacky May 11, 2025
37749fa
fix(ngx-config-editor): incorrect behavior of adding directive #1038
0xJacky May 11, 2025
af84b85
chore: prepare v2.0.0-rc.7
0xJacky May 11, 2025
6c07bc6
chore(deps): update all non-major dependencies
renovate[bot] May 12, 2025
0ad3014
Merge pull request #1042 from 0xJacky/renovate/all-minor-patch
0xJacky May 12, 2025
fa02b6a
fix(workflow): add semver pattern for versioning in build.yml
0xJacky May 12, 2025
f36a210
fix: site and stream unique key create issue #1017
0xJacky May 12, 2025
03c3b38
fix(nginx): correct dynamic module loading status handling
0xJacky May 13, 2025
5c60363
chore: update docs
0xJacky May 13, 2025
b055c54
fix(nginx): improve execCommand to set working directory for Nginx ex…
0xJacky May 13, 2025
5da4136
fix(self-check): supports Windows #1046
0xJacky May 13, 2025
909d63b
fix: unify symlink handling for site and stream on posix and win
0xJacky May 13, 2025
ab97f94
fix: unify symlink handling for site and stream on posix and win
0xJacky May 13, 2025
58f5d6d
refactor(nginx): simplify control error handling
0xJacky May 13, 2025
09dc2c7
fix(stream): load pagination for environment groups
0xJacky May 13, 2025
fb6a0b6
chore: prepare v2.0.0-rc.8
0xJacky May 13, 2025
5b4f97e
fix(ConfigTemplate): pass directives prop to DirectiveEditor
0xJacky May 13, 2025
c13cdea
fix: change info tag color to blue and encode stream path
0xJacky May 15, 2025
50b5afc
chore: update readme.md
0xJacky May 16, 2025
b69ad08
fix: reverse proxy for sse
0xJacky May 16, 2025
91c0743
chore: prepare v2.0.0
0xJacky May 16, 2025
f0b25b6
fix(nginx): handle nil stdErr in GetOutput method #1056
0xJacky May 17, 2025
88cec9a
chore: update deps
0xJacky May 17, 2025
d3f73f8
chore(deps): update all non-major dependencies
renovate[bot] May 17, 2025
daee3ac
Merge pull request #1058 from 0xJacky/renovate/all-minor-patch
0xJacky May 17, 2025
517f239
refactor: use uozi admin-kit
0xJacky May 15, 2025
2a3ef53
refactor(app): migrate to @uozi-admin/curd
0xJacky May 23, 2025
0d3f24c
fix(install): sse check #1069, #1070
0xJacky May 23, 2025
e5d1cba
feat(install.sh): add version channel option
0xJacky May 23, 2025
205101c
fix(install): include loading state in canProceed
0xJacky May 23, 2025
80e09a6
fix(analytic): disk analytic issue #1062
0xJacky May 23, 2025
fe51a8b
chore: prepare v2.0.1
0xJacky May 24, 2025
d98b8d9
Merge branch 'dev' into v2.1
0xJacky May 24, 2025
06203e7
chore: update translations
0xJacky May 24, 2025
153aa1b
feat: add disable-export functionality to multiple components
0xJacky May 24, 2025
e7d5129
chore: update deps
0xJacky May 24, 2025
87d7270
fix: upstream availability display #1076
0xJacky May 24, 2025
6fd77b5
chore: prepare v2.0.2
0xJacky May 24, 2025
df48d12
Merge branch 'dev' into v2.1
0xJacky May 24, 2025
2150857
refector: use SiteStatusSelect component for site status management
0xJacky May 24, 2025
0808eb0
feat: implement user profile management
0xJacky May 24, 2025
536aa54
feat: auto backup #999
0xJacky May 25, 2025
07aad48
feat: update pagination size and enhance list item padding in Config …
0xJacky May 25, 2025
beccf9d
feat: add port scanning #904
0xJacky May 25, 2025
7580fa4
feat: add proxy targets support in site and stream #904
0xJacky May 26, 2025
5081ca7
fix(install): improve nginx-ui service management and error handling …
0xJacky May 26, 2025
2fad018
Merge pull request #1078 from 0xJacky/v2.1
0xJacky May 26, 2025
1e34d9e
chore: update deps
0xJacky May 26, 2025
6821a87
refactor: remove fixed property from columns in site list
0xJacky May 26, 2025
58d01b9
chore(deps): update all non-major dependencies
renovate[bot] May 26, 2025
dad4442
Merge pull request #1075 from 0xJacky/renovate/all-minor-patch
0xJacky May 26, 2025
8ce80c0
fix(auto-backup): curd default value
0xJacky May 26, 2025
7cf056d
fix(auto-backup): add AES serializer for S3 access keys
0xJacky May 26, 2025
7273530
fix(auto-backup): update v-model syntax for backup path input
0xJacky May 26, 2025
fc7a480
fix(status): streamline SSE header setup by using api.SetSSEHeaders #…
0xJacky May 26, 2025
f264529
fix(auto-backup): change HTTP methods for auto backup routes
0xJacky May 26, 2025
78444ea
fix(auto-backup): refine storage path validation to check storage type
0xJacky May 26, 2025
7c2539b
chore: update readme.md
0xJacky May 26, 2025
23e548f
fix(auto-backup): hide sensitive S3 configuration fields in edit view
0xJacky May 26, 2025
459b84f
chore(deps): update all non-major dependencies
renovate[bot] May 27, 2025
0584bcb
Merge pull request #1083 from 0xJacky/renovate/all-minor-patch
0xJacky May 27, 2025
eb87649
fix(config): enhance get_history function to support pagination and u…
0xJacky May 27, 2025
7069cb1
refactor(nginx): replace direct reload calls with unified control met…
0xJacky May 28, 2025
bb175db
fix(config): remove redundant file read and content comparison in Sav…
0xJacky May 28, 2025
cda3089
fix(auto-backup): failed to get nginx config dir
0xJacky May 28, 2025
f3db653
fix(environment): update row selection to disable checkboxes based on…
0xJacky May 28, 2025
8a9d0d7
fix(backup): change backup route from POST to GET and update name ret…
0xJacky May 28, 2025
dd25035
chore: prepare v2.1.0-rc.1
0xJacky May 28, 2025
3cc3c57
fix(backup): update backup type handling and improve naming conventio…
0xJacky May 28, 2025
b9f033d
chore: update translations
0xJacky May 28, 2025
38ae1cc
chore: prepare v2.0.0-rc.2
0xJacky May 28, 2025
01d200e
fix(node): replace disk usage retrieval function
0xJacky May 28, 2025
227a821
chore: prepare v2.1.0-rc.3
0xJacky May 28, 2025
9fd282c
chore: update readme
0xJacky May 28, 2025
c59f81c
fix(NgxConfigEditor): handle config name change #1093
0xJacky May 28, 2025
9759967
fix(notification): update content function to include translation fla…
0xJacky May 28, 2025
24e7f53
chore: prepare v2.1.0
0xJacky May 29, 2025
d23caa3
enhance: skip HTTP challenge port for Let's Encrypt in proxy parsing
0xJacky May 29, 2025
f68b18d
fix(code-completion): open ws depends on code completion status
0xJacky May 29, 2025
2b2d85d
chore(deps): update all non-major dependencies
renovate[bot] May 30, 2025
de67e67
Merge pull request #1097 from 0xJacky/renovate/all-minor-patch
0xJacky May 30, 2025
fa1842c
chore(deps): update all non-major dependencies
renovate[bot] May 31, 2025
94645c1
Merge pull request #1098 from 0xJacky/renovate/all-minor-patch
0xJacky May 31, 2025
75947ab
enhance: hide header on small screens and update StreamList template …
0xJacky May 31, 2025
b44efad
fix(NgxConfigEditor): refactor availability result retrieval in direc…
0xJacky May 31, 2025
c22ed48
chore(deps): update module github.com/shirou/gopsutil/v4 to v4.25.5
renovate[bot] Jun 1, 2025
0275f01
refactor: remove ChatGPTMessages from config structure and update URL…
0xJacky Jun 1, 2025
555fa4b
Merge pull request #1101 from 0xJacky/renovate/all-minor-patch
0xJacky Jun 1, 2025
c4bb484
refactor: refresh editor ui
0xJacky Jun 1, 2025
f637e61
fix: clone directive object when adding to ngxDirectives
0xJacky Jun 2, 2025
052e476
fix: change overflow property to auto in BaseEditor and refactor NgxC…
0xJacky Jun 2, 2025
f19d6c0
chore: update translations
0xJacky Jun 2, 2025
b4553e6
fix: wrap error with parameters in GetError method of ControlResult
0xJacky Jun 2, 2025
0e0f443
fix: change tag color for access log in NginxLogList component
0xJacky Jun 2, 2025
bba5d37
fix: dns credential editor issue #1106
0xJacky Jun 3, 2025
a72045b
feat:(requests) use relative path as the base url #1109
0xJacky Jun 4, 2025
17ec11f
chore: prepare v2.1.1
0xJacky Jun 4, 2025
1a6133f
chore(deps): update all non-major dependencies
renovate[bot] Jun 4, 2025
b31365f
Merge pull request #1112 from 0xJacky/renovate/all-minor-patch
0xJacky Jun 4, 2025
b4b4a8a
fix: module loading regex #1108
0xJacky Jun 4, 2025
bd1e8c5
fix: translation issues #1115
0xJacky Jun 4, 2025
2d93e43
fix: missing middleware for encrypted form in restore backup endpoint…
0xJacky Jun 4, 2025
e207b51
chore: prepare v2.1.2
0xJacky Jun 4, 2025
b5414d8
fix: handle item creation and update #1117
0xJacky Jun 5, 2025
0f71fa4
fix: maybe failed to sync config #1118
0xJacky Jun 5, 2025
2734da5
fix: disk statistics issue #1119
0xJacky Jun 5, 2025
55d5476
refactor: auto-cert handling logic #1095, #1104
0xJacky Jun 5, 2025
4f0a51a
fix: improve nginx control logic and enhance error handling
0xJacky Jun 5, 2025
6770993
chore: prepare v2.1.3
0xJacky Jun 5, 2025
d55fcef
fix: update layout and class bindings in BaseEditor, EnableTLS, and S…
0xJacky Jun 6, 2025
ff65350
chore: prepare v2.1.4
0xJacky Jun 6, 2025
c77689e
fix: disable trash for nginx-log, sites list, streams list
0xJacky Jun 6, 2025
a042b66
chore: update translations
0xJacky Jun 6, 2025
2c7ebea
enhance: upstream parser #1127
0xJacky Jun 11, 2025
d64990e
feat(config): supports delete file or directory
0xJacky Jun 11, 2025
13a119f
chore(deps): update all non-major dependencies
renovate[bot] Jun 11, 2025
d3be185
Merge pull request #1128 from 0xJacky/renovate/all-minor-patch
0xJacky Jun 11, 2025
725e590
feat: add release url in upgrade page #1126
0xJacky Jun 11, 2025
1dcc187
fix: eslint errors
0xJacky Jun 11, 2025
0a7f89a
chore: prepare v2.1.5
0xJacky Jun 11, 2025
cd71907
chore: update workflows to include workflow_dispatch and add token fo…
0xJacky Jun 12, 2025
dcea751
chore: update docs
0xJacky Jun 12, 2025
fe8953d
fix: api timeout issue(close #1131, close #1139)
akinoccc Jun 14, 2025
e0cec2f
feat(nginx): add support for dynamically loaded modules and clear mod…
0xJacky Jun 15, 2025
d954918
fix(perf-opt): rm the unit of server names hash bucket size
0xJacky Jun 15, 2025
2ba7192
feat(performance): add error handling for nginx configuration and res…
0xJacky Jun 15, 2025
99942cf
chore: prepare v2.1.6
0xJacky Jun 15, 2025
f69a9d0
chore(deps): update all non-major dependencies
renovate[bot] Jun 15, 2025
eb8a962
Merge pull request #1142 from 0xJacky/renovate/all-minor-patch
0xJacky Jun 15, 2025
f6057d2
chore(deps): update devdependency vite-plugin-inspect to ^11.2.0
renovate[bot] Jun 16, 2025
bee1953
Merge pull request #1145 from 0xJacky/renovate/all-minor-patch
0xJacky Jun 16, 2025
5e18682
chore(deps): update all non-major dependencies
renovate[bot] Jun 18, 2025
6800497
Merge pull request #1154 from 0xJacky/renovate/all-minor-patch
0xJacky Jun 19, 2025
fa07d98
chore(deps): update all non-major dependencies
renovate[bot] Jun 23, 2025
b89c025
Merge pull request #1164 from 0xJacky/renovate/all-minor-patch
0xJacky Jun 23, 2025
b8db348
refactor(NodeSelector): replace SSE implementation
0xJacky Jun 23, 2025
06f7597
fix(SiteAdd): change overwrite flag to false in save function #1155
0xJacky Jun 23, 2025
1dbb852
feat(user): persists prefer language in db #1155
0xJacky Jun 23, 2025
116d1b5
chore: update deps
0xJacky Jun 23, 2025
a3ee40a
refactor(DiffViewer): improve content comparison logic and enhance ed…
0xJacky Jun 23, 2025
48cdfce
feat(nginx): add tests for OpenResty module parsing and normalize mod…
0xJacky Jun 24, 2025
0e01fbf
refactor(Notification, ProcessingStatus, SetLanguage): move SSE conne…
0xJacky Jun 24, 2025
422c3ce
chore: update docs
0xJacky Jun 24, 2025
c36128d
refactor(ErrorHandling): streamline error handling in API responses a…
0xJacky Jun 24, 2025
3058ec1
feat(CORS): add CORS middleware to allow all origins and update ws UR…
0xJacky Jun 24, 2025
61f4157
chore(deps): update devdependency @vitejs/plugin-vue-jsx to v5
renovate[bot] Jun 24, 2025
606ecba
feat(SelfCheck): add timeout check endpoint and integrate it into the…
0xJacky Jun 24, 2025
88a7bd5
Merge pull request #1168 from 0xJacky/renovate/vitejs-plugin-vue-jsx-5.x
0xJacky Jun 24, 2025
423c122
chore(deps): update devdependency vite to v7
renovate[bot] Jun 24, 2025
322af48
Merge pull request #1170 from 0xJacky/renovate/vite-7.x
0xJacky Jun 24, 2025
100bf6c
chore(deps): update devdependency @vitejs/plugin-vue to v6
renovate[bot] Jun 24, 2025
c31fb08
Merge pull request #1167 from 0xJacky/renovate/vitejs-plugin-vue-6.x
0xJacky Jun 24, 2025
c9ed434
chore(deps): use rolldown-vite
0xJacky Jun 24, 2025
0dac778
feat: set key type of auto-cert read only #1160
0xJacky Jun 24, 2025
62d5b15
enhance: error handling and improve configuration inspection
0xJacky Jun 24, 2025
0d84b5b
feat: retrieve nginx paths and enhance log cache #1158
0xJacky Jun 24, 2025
42170f5
chore: prepare v2.1.7
0xJacky Jun 24, 2025
ce4e5e9
feat: emit success event from BatchUpgrader after upgrade completion
0xJacky Jun 24, 2025
366de1b
chore(deps): update all non-major dependencies
renovate[bot] Jun 25, 2025
99b03ee
Merge pull request #1173 from 0xJacky/renovate/all-minor-patch
0xJacky Jun 25, 2025
227e9cb
fix: resolve CORS header duplication issue in proxy middleware
0xJacky Jun 25, 2025
f1e0d9b
chore: update docs
0xJacky Jun 25, 2025
991bac3
feat: enhance NodeRecordManager initialization and startup process
0xJacky Jun 25, 2025
f31df37
docs(about): add new member 'Cursor' with links in English, Chinese, …
akinoccc Jun 25, 2025
46d2629
docs(about): add blog link for member 'Akino' in English, Chinese, an…
akinoccc Jun 25, 2025
bb18ac8
feat: add auto-refresh functionality for environment list with config…
0xJacky Jun 25, 2025
ec63788
refactor: simplify save function in SiteAdd.vue to use async/await fo…
0xJacky Jun 25, 2025
e4dd130
chore: prepare v2.1.8
0xJacky Jun 25, 2025
b486cc6
fix(dashboard): [env] removing pagination logic #1180
0xJacky Jun 26, 2025
f91e551
fix(cert): update revoke logic #1179
0xJacky Jun 26, 2025
299999a
chore(deps): update all non-major dependencies
renovate[bot] Jun 26, 2025
cd464b5
fix(node_record): handle unexpected websocket errors gracefully in no…
0xJacky Jun 26, 2025
af1a1ea
Merge pull request #1181 from 0xJacky/renovate/all-minor-patch
0xJacky Jun 26, 2025
2bf2e13
chore: update deps
0xJacky Jun 26, 2025
6e80998
enhance: improve log path validation logic
0xJacky Jun 26, 2025
fa0d785
chore: prepare v2.1.9
0xJacky Jun 26, 2025
792e871
perf: cache nginx prefix for log file scanning
0xJacky Jun 26, 2025
dd8dfe0
enhance: file scanning with recursion protection and abs path resolut…
0xJacky Jun 26, 2025
69250a6
perf: reduce recursion depth #1178
0xJacky Jun 27, 2025
ccebcfd
enhance(auto-cert): update ignore condition
0xJacky Jun 28, 2025
1fd24eb
feat(nginx): add SbinPath option in settings
0xJacky Jun 28, 2025
118dff1
feat(ServerAnalytic): add websocket cleanup on component unmount
0xJacky Jun 28, 2025
c3c5bf8
fix(build): add --remote flag to r2 object put commands for proper fi…
0xJacky Jun 28, 2025
2eb9b72
chore(deps): update dependency marked to v16
renovate[bot] Jun 28, 2025
1f0a28a
Merge pull request #1190 from 0xJacky/renovate/marked-16.x
0xJacky Jun 28, 2025
f40e110
chore(deps): update all non-major dependencies
renovate[bot] Jun 28, 2025
d10038f
Merge pull request #1191 from 0xJacky/renovate/all-minor-patch
0xJacky Jun 28, 2025
8f7e8cd
feat(build): implement retry mechanism for file uploads in build work…
0xJacky Jun 28, 2025
6d34c88
feat(build): implement retry mechanism for file uploads in build work…
0xJacky Jun 28, 2025
34ef1de
fix(nginx): panic if sbin path is empty #1178
0xJacky Jun 28, 2025
d02a46d
chore(build): disable log sanitization for wrangler action
0xJacky Jun 28, 2025
f6abe74
fix(translations): update "sbin" to "Sbin" in multiple language files
0xJacky Jun 28, 2025
664834f
chore: prepare v2.1.10
0xJacky Jun 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(self-check): check stream if stream loaded 0xJacky#1028
  • Loading branch information
0xJacky committed May 9, 2025
commit 202ac03537a4f976be811069f800ac3a7aec6f2a
278 changes: 147 additions & 131 deletions app/src/language/ar/app.po

Large diffs are not rendered by default.

379 changes: 206 additions & 173 deletions app/src/language/de_DE/app.po

Large diffs are not rendered by default.

370 changes: 196 additions & 174 deletions app/src/language/es/app.po

Large diffs are not rendered by default.

340 changes: 183 additions & 157 deletions app/src/language/fr_FR/app.po

Large diffs are not rendered by default.

492 changes: 306 additions & 186 deletions app/src/language/ja_JP/app.po

Large diffs are not rendered by default.

442 changes: 270 additions & 172 deletions app/src/language/ko_KR/app.po

Large diffs are not rendered by default.

333 changes: 178 additions & 155 deletions app/src/language/pt_PT/app.po

Large diffs are not rendered by default.

335 changes: 176 additions & 159 deletions app/src/language/ru_RU/app.po

Large diffs are not rendered by default.

330 changes: 177 additions & 153 deletions app/src/language/tr_TR/app.po

Large diffs are not rendered by default.

307 changes: 160 additions & 147 deletions app/src/language/uk_UA/app.po

Large diffs are not rendered by default.

365 changes: 191 additions & 174 deletions app/src/language/vi_VN/app.po

Large diffs are not rendered by default.

370 changes: 218 additions & 152 deletions app/src/language/zh_CN/app.po

Large diffs are not rendered by default.

375 changes: 221 additions & 154 deletions app/src/language/zh_TW/app.po

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions internal/nginx/modules.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package nginx

import (
"regexp"
"strings"
)

const (
ModuleStream = "stream_module"
)

func GetModules() (modules []string) {
out := getNginxV()

// Regular expression to find modules in nginx -V output
r := regexp.MustCompile(`--with-([a-zA-Z0-9_-]+)(_module)?`)

// Find all matches
matches := r.FindAllStringSubmatch(out, -1)

// Extract module names from matches
for _, match := range matches {
module := match[1]
// If the module doesn't end with "_module", add it
if !strings.HasSuffix(module, "_module") {
module = module + "_module"
}
modules = append(modules, module)
}

return modules
}

func IsModuleLoaded(module string) bool {
modules := GetModules()

for _, m := range modules {
if m == module {
return true
}
}

return false
}
41 changes: 22 additions & 19 deletions internal/self_check/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/0xJacky/Nginx-UI/internal/translation"
"github.com/elliotchance/orderedmap/v3"
"github.com/uozi-tech/cosy"
"github.com/0xJacky/Nginx-UI/internal/nginx"
)

type Task struct {
Expand Down Expand Up @@ -44,15 +45,6 @@ var selfCheckTasks = []*Task{
CheckFunc: CheckSitesDirectory,
FixFunc: FixSitesDirectory,
},
{
Key: "Directory-Streams",
Name: translation.C("Streams directory exists"),
Description: translation.C("Check if the " +
"streams-available and streams-enabled directories are " +
"under the nginx configuration directory"),
CheckFunc: CheckStreamDirectory,
FixFunc: FixStreamDirectory,
},
{
Key: "NginxConf-Sites-Enabled",
Name: translation.C("Nginx.conf includes sites-enabled directory"),
Expand All @@ -61,14 +53,6 @@ var selfCheckTasks = []*Task{
CheckFunc: CheckNginxConfIncludeSites,
FixFunc: FixNginxConfIncludeSites,
},
{
Key: "NginxConf-Streams-Enabled",
Name: translation.C("Nginx.conf includes streams-enabled directory"),
Description: translation.C("Check if the nginx.conf includes the " +
"streams-enabled directory"),
CheckFunc: CheckNginxConfIncludeStreams,
FixFunc: FixNginxConfIncludeStreams,
},
{
Key: "NginxConf-ConfD",
Name: translation.C("Nginx.conf includes conf.d directory"),
Expand Down Expand Up @@ -112,8 +96,23 @@ var selfCheckTasks = []*Task{
var selfCheckTaskMap = orderedmap.NewOrderedMap[string, *Task]()

func init() {
for _, task := range selfCheckTasks {
selfCheckTaskMap.Set(task.Key, task)
if nginx.IsModuleLoaded(nginx.ModuleStream) {
selfCheckTasks = append(selfCheckTasks, &Task{
Key: "Directory-Streams",
Name: translation.C("Streams directory exists"),
Description: translation.C("Check if the " +
"streams-available and streams-enabled directories are " +
"under the nginx configuration directory"),
CheckFunc: CheckStreamDirectory,
FixFunc: FixStreamDirectory,
}, &Task{
Key: "NginxConf-Streams-Enabled",
Name: translation.C("Nginx.conf includes streams-enabled directory"),
Description: translation.C("Check if the nginx.conf includes the " +
"streams-enabled directory"),
CheckFunc: CheckNginxConfIncludeStreams,
FixFunc: FixNginxConfIncludeStreams,
})
}
if helper.InNginxUIOfficialDocker() {
selfCheckTasks = append(selfCheckTasks, &Task{
Expand All @@ -124,4 +123,8 @@ func init() {
CheckFunc: CheckDockerSocket,
})
}

for _, task := range selfCheckTasks {
selfCheckTaskMap.Set(task.Key, task)
}
}