Skip to content

Commit

Permalink
🔧 Add configuration for xPoweredBy and dateHeader interceptors
Browse files Browse the repository at this point in the history
  • Loading branch information
ujibang committed May 10, 2024
1 parent f4f2a03 commit 10d5b8c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class ThreadAwareByteBufferPool implements ByteBufferPool {
private final boolean enablePooling;

/**
* @param direct If io threads implmentation should use direct buffers
* @param direct If io threads implementation should use direct buffers
* @param bufferSize The buffer size to use
* @param enablePooling true to enable pooling for platform threads
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,14 @@ bruteForceAttackGuard:
# 2 -> y.y.y.y
x-forwarded-for-value-from-last-element: 0

# Sets the X-Powered-By: restheart.org response header
xPoweredBy:
enabled: true

# Sets the Date response header
dateHeader:
enabled: true

# Logging
# see https://restheart.org/docs/logging
# Options:
Expand Down
8 changes: 8 additions & 0 deletions core/src/main/resources/restheart-default-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,14 @@ bruteForceAttackGuard:
# 2 -> y.y.y.y
x-forwarded-for-value-from-last-element: 0

# Sets the X-Powered-By: restheart.org response header
xPoweredBy:
enabled: true

# Sets the Date response header
dateHeader:
enabled: true

# Logging
# see https://restheart.org/docs/logging
# Options:
Expand Down

0 comments on commit 10d5b8c

Please sign in to comment.