mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-12 19:56:48 +00:00
style: Use string literals instead of u8s
This commit is contained in:
1 parent
68d018bd37
commit
62730e861a
2 files changed
+19
-18
No files matched your search
+12
-11
@@ -292,23 +292,24 @@
|
||||
|
||||
# The source to use for discovering the real connecting client IP.
|
||||
#
|
||||
# Takes the number of any of the following options:
|
||||
# Takes any of the following options:
|
||||
#
|
||||
# 0 - Use the IP address of the TCP connection
|
||||
# 1 - `Cf-Connecting-Ip` header
|
||||
# 2 - `CloudFront-Viewer-Address` header
|
||||
# 3 - `Fly-Client-IP` header
|
||||
# 4 - rightmost value of the `X-Forwarded-For` header
|
||||
# 5 - `True-Client-Ip` header
|
||||
# 6 - `X-Envoy-External-Address` header
|
||||
# 7 - `X-Real-Ip` header
|
||||
# "cf_connecting_ip" - `Cf-Connecting-Ip` header
|
||||
# "cloudfront_viewer_address" - `CloudFront-Viewer-Address` header
|
||||
# "fly_client_ip" - `Fly-Client-IP` header
|
||||
# "x_forwarded_for" - rightmost value of the `X-Forwarded-For` header
|
||||
# "true_client_ip" - `True-Client-Ip` header
|
||||
# "x_envoy_external_address" - `X-Envoy-External-Address` header
|
||||
# "x_real_ip" - `X-Real-Ip` header
|
||||
#
|
||||
# Only change this from `0` if you are certain only your reverse proxy
|
||||
# Only set this if you are certain only your reverse proxy
|
||||
# will send the expected header. There is no "is the connecting IP allowed
|
||||
# to set this header" check; if the header selected is present, it is
|
||||
# used.
|
||||
#
|
||||
#request_ip_source = 0
|
||||
# Defaults to the IP address actually making the connection.
|
||||
#
|
||||
#request_ip_source = false
|
||||
|
||||
# Max request size for file uploads in bytes. Defaults to 20MB.
|
||||
# Also limits incoming federated media.
|
||||
|
||||
@@ -374,13 +374,13 @@ pub struct Config {
|
||||
///
|
||||
/// Takes any of the following options:
|
||||
///
|
||||
/// cf_connecting_ip - `Cf-Connecting-Ip` header
|
||||
/// cloudfront_viewer_address - `CloudFront-Viewer-Address` header
|
||||
/// fly_client_ip - `Fly-Client-IP` header
|
||||
/// x_forwarded_for - rightmost value of the `X-Forwarded-For` header
|
||||
/// true_client_ip - `True-Client-Ip` header
|
||||
/// x_envoy_external_address - `X-Envoy-External-Address` header
|
||||
/// x_real_ip - `X-Real-Ip` header
|
||||
/// "cf_connecting_ip" - `Cf-Connecting-Ip` header
|
||||
/// "cloudfront_viewer_address" - `CloudFront-Viewer-Address` header
|
||||
/// "fly_client_ip" - `Fly-Client-IP` header
|
||||
/// "x_forwarded_for" - rightmost value of the `X-Forwarded-For` header
|
||||
/// "true_client_ip" - `True-Client-Ip` header
|
||||
/// "x_envoy_external_address" - `X-Envoy-External-Address` header
|
||||
/// "x_real_ip" - `X-Real-Ip` header
|
||||
///
|
||||
/// Only set this if you are certain only your reverse proxy
|
||||
/// will send the expected header. There is no "is the connecting IP allowed
|
||||
|
||||
Reference in new issue
Block a user