You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Casdoor is a powerful and comprehensive identity authentication solution that supports OAuth 2.0, SAML 2.0, LDAP, AD, and multiple social login methods.
5
+
By integrating Casdoor, Nginx UI can leverage these features to improve security and user experience.
5
6
6
7
## Endpoint
7
-
-类型:`string`
8
+
-Type: `string`
8
9
9
-
这是 Casdoor 服务器的 URL。您需要确保 Nginx UI 可以访问此 URL。
10
+
This is the Endpoint of the Casdoor server. You need to make sure that Nginx UI can access this URL.
10
11
11
12
## ClientId
12
-
-类型:`string`
13
+
-Type: `string`
13
14
14
-
这是 Casdoor 为您的应用生成的客户端 ID。它用于在身份验证过程中标识您的应用。
15
+
This is the Client ID generated by Casdoor for your application.
16
+
It is used to identify your application during the authentication process.
15
17
16
18
## ClientSecret
17
-
-类型:`string`
19
+
-Type: `string`
18
20
19
-
这是 Casdoor 为您的应用生成的客户端密钥。它是保持您的应用安全所必需的。
21
+
This is the Client Secret generated by Casdoor for your application.
22
+
It is necessary to keep your application secure.
20
23
21
24
## Certificate
22
-
-类型:`string`
25
+
-Type: `string`
23
26
24
-
这是用于身份验证过程中的证书。确保它是有效和可信的。
27
+
This is the certificate used during the authentication process.
28
+
Make sure it is valid and trusted.
25
29
26
30
## Organization
27
-
-类型:`string`
31
+
-Type: `string`
28
32
29
-
这是您在 Casdoor 中设置的组织名称。Casdoor 将使用此信息来处理身份验证请求。
33
+
This is the organization name you set in Casdoor.
34
+
It will use this information to process authentication requests.
30
35
31
36
## Application
32
-
-类型:`string`
37
+
-Type: `string`
33
38
34
-
这是您在 Casdoor 中创建的应用名称。
39
+
This is the application name you created in Casdoor.
35
40
36
41
## RedirectUri
37
-
-类型:`string`
42
+
-Type: `string`
38
43
39
-
这是用户在成功登录或授权后重定向到的 URI。它应与 Casdoor 应用配置中的重定向 URI 一致。
44
+
This is the URI that users will be redirected to after successful login or authorization.
45
+
It should be consistent with the Redirect URI in the Casdoor application configuration.
Nginx logs are essential for monitoring, troubleshooting, and maintaining your web server. They provide valuable
4
-
insights into server performance, user behavior, and potential issues. In this section, we will discuss the two primary
5
-
types of logs: access logs and error logs.
3
+
In this section, we will introduce configuration options in Nginx UI about Nginx control commands, log paths, and other parameters.
6
4
7
-
For Nginx-UI Docker users who are upgrading from v1.5.2 or earlier versions, it is crucial to add separate `access_log`
8
-
and `error_log` directives in your `nginx.conf` before configuring the `app.ini`.
5
+
::: tip Tip
6
+
Starting from Nginx UI v2.0.0-beta.3, we have renamed the `nginx_log` configuration item to `nginx`.
7
+
:::
9
8
10
-
In the Nginx-UI container, `/var/log/nginx/access.log` is a symlink pointing to `/dev/stdout`,
11
-
and `/var/log/nginx/error.log`
12
-
is a symlink pointing to `/dev/stderr`. This setup allows you to view both the Nginx and Nginx-UI logs using the `docker
13
-
logs nginx-ui` command. However, these two devices do not support the tail command, so it is necessary to use additional
14
-
log files to record Nginx logs.
9
+
## Logs
10
+
Nginx logs are crucial for monitoring, troubleshooting, and maintaining your web server. They provide valuable insights into server performance, user behavior, and potential issues.
11
+
12
+
In this section, we will discuss two main types of logs: access logs and error logs.
13
+
14
+
For Nginx-UI Docker users upgrading from version v1.5.2 or earlier, you need to add separate `access_log` and `error_log` directives in `nginx.conf` before configuring `app.ini`.
15
+
16
+
In the Nginx-UI container, `/var/log/nginx/access.log` is a symbolic link to `/dev/stdout`, and `/var/log/nginx/error.log` is a symbolic link to `/dev/stderr`. This setup allows you to view Nginx and Nginx-UI logs using the `docker logs nginx-ui` command. However, these devices do not support the `tail` command, so it is necessary to use additional log files to record Nginx logs.
15
17
16
18
Example:
17
19
@@ -27,7 +29,7 @@ http {
27
29
}
28
30
```
29
31
30
-
Additionally, set nginx access log and error log path in `app.ini` and restart nginx-ui.
32
+
Afterward, set the nginx access log and error log paths in `app.ini`, then restart nginx-ui.
This option is used to set the path of nginx access log for Nginx UI, so we can view the log content online.
46
+
This option is used to set the path for Nginx access logs in Nginx UI, allowing us to view log content online.
45
47
46
-
## ErrorLogPath
48
+
::: tip Tip
49
+
In Nginx UI v2, we parse the output of the `nginx -V` command to get the default path for Nginx access logs.
50
+
51
+
If you need to set a different path, you can use this option.
52
+
:::
53
+
54
+
### ErrorLogPath
47
55
48
56
- Type: `string`
49
57
50
-
This option is used to set the path of nginx error log for Nginx UI, so we can view the log content online.
58
+
This option is used to set the path for Nginx error logs in Nginx UI, allowing us to view log content online.
59
+
60
+
::: tip Tip
61
+
In Nginx UI v2, we parse the output of the `nginx -V` command to get the default path for Nginx error logs.
62
+
63
+
If you need to set a different path, you can use this option.
64
+
:::
65
+
66
+
67
+
68
+
## Service Monitoring and Control
69
+
70
+
In this section, we will introduce configuration options in Nginx UI for monitoring and controlling Nginx services.
71
+
72
+
### ConfigDir
73
+
- Type: `string`
74
+
75
+
This option is used to set the path for the Nginx configuration folder.
76
+
77
+
In Nginx UI v2, we parse the output of the `nginx -V` command to get the default path for the Nginx configuration file.
78
+
79
+
If you need to override the default path, you can use this option.
80
+
81
+
### PIDPath
82
+
- Type: `string`
83
+
84
+
This option is used to set the path for the Nginx PID file. Nginx UI determines the running status of the Nginx service by checking if this file exists.
85
+
86
+
In Nginx UI v2, we parse the output of the `nginx -V` command to get the default path for the Nginx PID file.
87
+
88
+
If you need to override the default path, you can use this option.
89
+
90
+
### TestConfigCmd
91
+
- Type: `string`
92
+
- Default: `nginx -t`
93
+
94
+
This option is used to set the command for testing the Nginx configuration.
95
+
96
+
### ReloadCmd
97
+
- Type: `string`
98
+
- Default: `nginx -s reload`
99
+
100
+
This option is used to set the command for reloading the Nginx configuration.
101
+
102
+
### RestartCmd
103
+
- Type: `string`
104
+
105
+
::: tip Tip
106
+
We recommend users who manage Nginx with systemd to set this value to `systemctl restart nginx`.
107
+
Otherwise, after restarting Nginx in the Nginx UI, you will not be able to get the accurate status of Nginx in systemctl.
108
+
:::
109
+
110
+
If this option is left empty, Nginx UI will use the following command to stop the Nginx service:
Copy file name to clipboardExpand all lines: docs/guide/config-server.md
+32-6Lines changed: 32 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,13 @@
3
3
The server section of the Nginx UI configuration deals with various settings that control the behavior and operation of
4
4
the Nginx UI server. In this section, we will discuss the available options, their default values, and their purpose.
5
5
6
+
## HttpHost
7
+
- Type: `string`
8
+
- Default:`0.0.0.0`
9
+
10
+
The hostname on which the Nginx UI server listens for incoming HTTP requests.
11
+
Changing the default hostname can be useful for improving the security of Nginx UI.
12
+
6
13
## HttpPort
7
14
8
15
- Type: `int`
@@ -14,12 +21,25 @@ HTTP requests. Changing the default port can be useful for avoiding port conflic
14
21
## RunMode
15
22
16
23
- Type: `string`
17
-
- Supported value: `release`, `debug`
24
+
- Supported value: `release`,`debug`
25
+
- Default: `debug`
18
26
19
-
::: tip
20
-
At present, we have not yet adapted to this option, and there will be no significant differences between release and
21
-
debug in terms of usage.
22
-
:::
27
+
This option is used to configure the running mode of the Nginx UI server, which mainly affects the level of log printing.
28
+
29
+
The log level of Nginx UI is divided into 6 levels: `Debug`, `Info`, `Warn`, `Error`, `Panic` and `Fatal`. These log levels increase in severity.
30
+
31
+
When using the `debug` mode, Nginx UI will print SQL and its execution time and caller on the console, and the log of `Debug` level or higher will also be printed.
32
+
33
+
When using the `release` mode, Nginx UI will not print the execution time and caller of SQL on the console, and only the log of `Info` level or higher will be printed.
34
+
35
+
## JwtSecret
36
+
- Type: `string`
37
+
38
+
This option is used to configure the key used by the Nginx UI server to generate JWT.
39
+
40
+
JWT is a standard for verifying user identity. It can generate a token after the user logs in, and then use the token to verify the user's identity in subsequent requests.
41
+
42
+
If you use the one-click installation script to deploy Nginx UI, the script will generate a UUID value and set it as the value of this option.
23
43
24
44
## HTTPChallengePort
25
45
@@ -30,6 +50,12 @@ This option is used to set the port for backend listening in the HTTP01 challeng
30
50
certificates. The HTTP01 challenge is a domain validation method used by Let's Encrypt to verify that you control the
31
51
domain for which you're requesting a certificate.
32
52
53
+
## Email
54
+
- Type: `string`
55
+
56
+
When obtaining a Let's Encrypt certificate, this option is used to set your email address.
57
+
Let's Encrypt will use your email address to notify you of the expiration date of your certificate.
58
+
33
59
## Database
34
60
35
61
- Type: `string`
@@ -75,5 +101,5 @@ CADir needs to comply with the `RFC 8555` standard.
75
101
- Type: `string`
76
102
- Suggestion: `https://mirror.ghproxy.com/`
77
103
78
-
For users who may experience difficulties downloading resources from Github (such as in mainland China), this option
104
+
For users who may experience difficulties downloading resources from GitHub (such as in mainland China), this option
79
105
allows them to set a proxy for github.com to improve accessibility.
0 commit comments