mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
* feat: 部分代码 * feat: auditmanager * feat: remove plugin and update Audit test case * fix: build error * feat: update audit value * fix: some action like create remove can not work correctly * fix: metadata data * feat: update some dataSource * fix: filterKeys error * style: update code format * feat: add getMetaData test & add audit log in specific module * fix: bug * refactor: registerAction and getAction * refactor: registerAction and getAction * fix: log * fix: fix middleware * chore: add getResourceUk * chore: use response code as status * chore: log error * chore: get role from response header * chore: auth signIn getUserInfo * chore: add X-Forwarded-For * chore: adjust IP acquisition and add log user updateprofile * fix: getAction bug * fix: get ip from header * chore: register uiSchemas actions * chore: register uiSchemas:insertAdjacent * chore: record source and target * chore: record auth:changePassword * chore: add getSourceAndTarget * chore: auditManager tests * fix: delete submodule * chore: delete debug port * fix: module not found * chore: save path and swap the values of source and target --------- Co-authored-by: yujian.sun <yujian.sun@dmall.com> Co-authored-by: sunyujian <565974029@qq.com> Co-authored-by: xilesun <2013xile@gmail.com>
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
log_format apm '"$time_local" client=$remote_addr '
|
|
'method=$request_method request="$request" '
|
|
'request_length=$request_length '
|
|
'status=$status bytes_sent=$bytes_sent '
|
|
'body_bytes_sent=$body_bytes_sent '
|
|
'referer=$http_referer '
|
|
'user_agent="$http_user_agent" '
|
|
'upstream_addr=$upstream_addr '
|
|
'upstream_status=$upstream_status '
|
|
'request_time=$request_time '
|
|
'upstream_response_time=$upstream_response_time '
|
|
'upstream_connect_time=$upstream_connect_time '
|
|
'upstream_header_time=$upstream_header_time';
|
|
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /app/nocobase/packages/app/client/dist;
|
|
index index.html;
|
|
client_max_body_size 20M;
|
|
|
|
access_log /var/log/nginx/nocobase.log apm;
|
|
|
|
location /storage/uploads/ {
|
|
alias /app/nocobase/storage/uploads/;
|
|
autoindex off;
|
|
}
|
|
|
|
location / {
|
|
root /app/nocobase/packages/app/client/dist;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location ^~ /api/ {
|
|
proxy_pass http://127.0.0.1:13000/api/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
}
|
|
}
|