Skip to content

Commit

Permalink
fix: cors test22
Browse files Browse the repository at this point in the history
  • Loading branch information
toychip committed Aug 4, 2024
1 parent f44b40f commit a150bd3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .platform/nginx/conf.d/custom_log_format.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
log_format healthd '$msec"$uri"'
'$status"$request_time"$upstream_response_time"'
'$http_x_forwarded_for';
6 changes: 6 additions & 0 deletions .platform/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ events {
}

http {
types_hash_max_size 2048;
types_hash_bucket_size 128;

# Include the custom log format
include conf.d/custom_log_format.conf;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
Expand Down

0 comments on commit a150bd3

Please sign in to comment.