mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #218] Missing default directives in the 'Add Site' menu when building nginx-ui from source. #7241
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#7241
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sanvu88 on GitHub (Dec 5, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/218
Describe the bug
Missing default directives in the 'Add Site' menu when building nginx-ui from source.
To Reproduce
npx browserslist@latest --update-db
wget -O- https://github.com/0xJacky/nginx-ui/archive/refs/tags/v2.0.0-beta.5.tar.gz | tar -xz
cd nginx-ui-2.0.0-beta.5/app
yarn install
yarn build
cd ..
go build -o nginx-ui -v main.go
Screenshots
Info:
@0xJacky commented on GitHub (Dec 5, 2023):
Fixed in
26788f3@0xJacky commented on GitHub (Dec 6, 2023):
By the way, I recommend to use pnpm rather than yarn.
Also, the recommend build command of backend is
go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.goUsing jsoniter has little bit improvement on perfermance, and you need to set a build time for nginx ui, this will be use to determine whether the browser cache is outdated.