-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat: Autogenerate admin api key if not passed #11080
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
Changes from all commits
33d8f9c
73efe8b
5f3f06f
cd4160c
2054e73
f1fe58b
4b64ef7
05ead26
9d18f3a
4449ed1
d80ba97
4c7d2b7
336a63f
6fa433d
b3ab95c
9dd6a1f
ef88059
7d2093f
e6d34a9
e07d3f5
e0a7d45
ea4f4f7
063afb2
4cda3f3
e5def8e
2cbad3a
d2fc7eb
465c276
7400092
e86ad6d
42195d5
b4cfcd2
0edef02
7a69e71
1b7dd60
7397903
12c24e6
420d1ab
5edae90
d0ffc54
24a217b
18239e9
b85a0fd
efa0e99
3f75740
3e37124
b6d5afd
7c9f1f1
da823ed
a3add33
11f96bb
311eb41
a3f44c7
4261bac
7d9f6a2
fd29bf5
d09b3be
a32251b
e6ff3a9
510f277
709e089
8dc0250
89ad574
23d28f0
adab320
ad6cf48
190001c
4988cb8
f5aaf05
c9f5f5a
f09685d
5b0c04e
09a7704
26a948a
39cc5c8
fae943b
3df4978
6357411
c851820
df9dc76
07afe44
ec03ce8
aacb574
258e1cf
277cc74
93c0e01
612ef88
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -170,7 +170,8 @@ nginx_config: # Config for render the template to generate n | |
| stream: | ||
| enable_access_log: false # Enable stream proxy access logging. | ||
| access_log: logs/access_stream.log # Location of the stream access log. | ||
| access_log_format: "$remote_addr [$time_local] $protocol $status $bytes_sent $bytes_received $session_time" # Customize log format: http://nginx.org/en/docs/varindex.html | ||
| access_log_format: | | ||
| "$remote_addr [$time_local] $protocol $status $bytes_sent $bytes_received $session_time" # Customize log format: http://nginx.org/en/docs/varindex.html | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. due to this change, are you sure the comment won't be parsed as a part of the string?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change has nothing to do with this modification. If you think it is necessary, it is recommended to open a new PR to deal with it.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Revolyssup please address this comment. |
||
| access_log_format_escape: default # Escape default or json characters in variables. | ||
| lua_shared_dict: # Nginx Lua shared memory zone. Size units are m or k. | ||
| etcd-cluster-health-check-stream: 10m | ||
|
|
@@ -208,7 +209,8 @@ nginx_config: # Config for render the template to generate n | |
| enable_access_log: true # Enable HTTP proxy access logging. | ||
| access_log: logs/access.log # Location of the access log. | ||
| access_log_buffer: 16384 # buffer size of access log. | ||
| access_log_format: "$remote_addr - $remote_user [$time_local] $http_host \"$request\" $status $body_bytes_sent $request_time \"$http_referer\" \"$http_user_agent\" $upstream_addr $upstream_status $upstream_response_time \"$upstream_scheme://$upstream_host$upstream_uri\"" | ||
| access_log_format: | | ||
| "$remote_addr - $remote_user [$time_local] $http_host \"$request\" $status $body_bytes_sent $request_time \"$http_referer\" \"$http_user_agent\" $upstream_addr $upstream_status $upstream_response_time \"$upstream_scheme://$upstream_host$upstream_uri\"" | ||
|
Comment on lines
+212
to
+213
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The lyaml.dump function which is being used here to convert lua table into yaml, messes up the formatting and adds a new line automatically. Using |
||
| # Customize log format: http://nginx.org/en/docs/varindex.html | ||
| access_log_format_escape: default # Escape default or json characters in variables. | ||
| keepalive_timeout: 60s # Set the maximum time for which TCP connection keeps alive. | ||
|
|
@@ -643,7 +645,7 @@ deployment: # Deployment configurations | |
| admin_key: | ||
| - | ||
| name: admin # admin: write access to configurations. | ||
| key: edd1c9f034335f136f87ad84b625c8f1 # Set API key for the admin of Admin API. | ||
| key: '' # Set API key for the admin of Admin API. | ||
| role: admin | ||
| - | ||
| name: viewer # viewer: read-only to configurations. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.