mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
fix: nil pointer panic occurs before install
This commit is contained in:
parent
b7fe859ca2
commit
9f469c972e
5 changed files with 9 additions and 4 deletions
5
frontend/.gitignore
vendored
5
frontend/.gitignore
vendored
|
@ -7,10 +7,13 @@ yarn-error.log*
|
|||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# deps
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
.vitepress/cache/
|
||||
.yarn
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
|
@ -22,5 +25,3 @@ dist-ssr
|
|||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
.vitepress/cache
|
||||
.yarn
|
||||
|
|
1
frontend/.yarnrc.yml
Normal file
1
frontend/.yarnrc.yml
Normal file
|
@ -0,0 +1 @@
|
|||
nodeLinker: node-modules
|
|
@ -1,7 +1,7 @@
|
|||
# Example of Nginx Reverse Proxy
|
||||
|
||||
In this guide, we'll walk you through the process of configuring an Nginx server to redirect HTTP traffic to HTTPS and
|
||||
set up a reverse proxy for the Nginx UI running on http://127.0.0.1:9000/.
|
||||
set up a reverse proxy for the Nginx UI running on `http://127.0.0.1:9000/`.
|
||||
|
||||
```nginx
|
||||
server {
|
||||
|
|
|
@ -12,7 +12,7 @@ hero:
|
|||
actions:
|
||||
- theme: brand
|
||||
text: Get Started
|
||||
link: /markdown-examples
|
||||
link: /guide/about
|
||||
- theme: alt
|
||||
text: View on Github
|
||||
link: https://github.com/0xJacky/nginx-ui
|
||||
|
|
|
@ -46,6 +46,9 @@ func (c *Cert) Insert() error {
|
|||
|
||||
func GetAutoCertList() (c []*Cert) {
|
||||
var t []*Cert
|
||||
if db == nil {
|
||||
return
|
||||
}
|
||||
db.Where("auto_cert", AutoCertEnabled).Find(&t)
|
||||
|
||||
// check if this domain is enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue