mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 10:11:30 +08:00
Use markdown-grid-tables for multiline table
pycodestyle enforces 120-character line lengtn limit. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
parent
cc974da87e
commit
c0959609ef
@ -1364,12 +1364,24 @@ variable. If it is not defined, the default is ``"127.0.0.1,::1"``.
|
||||
}
|
||||
```
|
||||
|
||||
| forwarded-allow-ips | Secure Request Headers | Result | Explanation |
|
||||
| ------------------- | -------------------------------------------------- | ------------------------------- | ----------------------------------------------------------------------------- |
|
||||
| `"127.0.0.1"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "http"` | IP address was not allowed |
|
||||
| `"*"` | `<none>` | `wsgi.url_scheme = "http"` | IP address allowed, but no secure headers provided |
|
||||
| `"*"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "https"` | IP address allowed, one request header matched |
|
||||
| `"134.213.44.18"` | `X-Forwarded-Ssl: on`<br>`X-Forwarded-Proto: http` | `InvalidSchemeHeaders()` raised | IP address allowed, but the two secure headers disagreed on if HTTPS was used |
|
||||
+---------------------+----------------------------+-----------------------------+-------------------------+
|
||||
| forwarded-allow-ips | Secure Request Headers | Result | Explanation |
|
||||
+=====================+============================+=============================+=========================+
|
||||
| `"127.0.0.1"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "http"` | IP address was not |
|
||||
| | | | allowed |
|
||||
+---------------------+----------------------------+-----------------------------+-------------------------+
|
||||
| | | | IP address allowed, but |
|
||||
| `"*"` | `<none>` | `wsgi.url_scheme = "http"` | no secure headers |
|
||||
| | | | provided |
|
||||
+---------------------+----------------------------+-----------------------------+-------------------------+
|
||||
| `"*"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "https"` | IP address allowed, one |
|
||||
| | | | request header matched |
|
||||
+---------------------+----------------------------+-----------------------------+-------------------------+
|
||||
| | | | IP address allowed, but |
|
||||
| `"134.213.44.18"` | `X-Forwarded-Ssl: on` | `InvalidSchemeHeaders()` | the two secure headers |
|
||||
| | `X-Forwarded-Proto: http` | raised | disagreed on if HTTPS |
|
||||
| | | | was used |
|
||||
+---------------------+----------------------------+-----------------------------+-------------------------+
|
||||
|
||||
### `pythonpath`
|
||||
|
||||
|
||||
@ -1354,12 +1354,24 @@ class ForwardedAllowIPS(Setting):
|
||||
}
|
||||
```
|
||||
|
||||
| forwarded-allow-ips | Secure Request Headers | Result | Explanation |
|
||||
| ------------------- | -------------------------------------------------- | ------------------------------- | ----------------------------------------------------------------------------- |
|
||||
| `"127.0.0.1"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "http"` | IP address was not allowed |
|
||||
| `"*"` | `<none>` | `wsgi.url_scheme = "http"` | IP address allowed, but no secure headers provided |
|
||||
| `"*"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "https"` | IP address allowed, one request header matched |
|
||||
| `"134.213.44.18"` | `X-Forwarded-Ssl: on`<br>`X-Forwarded-Proto: http` | `InvalidSchemeHeaders()` raised | IP address allowed, but the two secure headers disagreed on if HTTPS was used |
|
||||
+---------------------+----------------------------+-----------------------------+-------------------------+
|
||||
| forwarded-allow-ips | Secure Request Headers | Result | Explanation |
|
||||
+=====================+============================+=============================+=========================+
|
||||
| `"127.0.0.1"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "http"` | IP address was not |
|
||||
| | | | allowed |
|
||||
+---------------------+----------------------------+-----------------------------+-------------------------+
|
||||
| | | | IP address allowed, but |
|
||||
| `"*"` | `<none>` | `wsgi.url_scheme = "http"` | no secure headers |
|
||||
| | | | provided |
|
||||
+---------------------+----------------------------+-----------------------------+-------------------------+
|
||||
| `"*"` | `X-Forwarded-Proto: https` | `wsgi.url_scheme = "https"` | IP address allowed, one |
|
||||
| | | | request header matched |
|
||||
+---------------------+----------------------------+-----------------------------+-------------------------+
|
||||
| | | | IP address allowed, but |
|
||||
| `"134.213.44.18"` | `X-Forwarded-Ssl: on` | `InvalidSchemeHeaders()` | the two secure headers |
|
||||
| | `X-Forwarded-Proto: http` | raised | disagreed on if HTTPS |
|
||||
| | | | was used |
|
||||
+---------------------+----------------------------+-----------------------------+-------------------------+
|
||||
|
||||
|
||||
"""
|
||||
|
||||
@ -105,6 +105,8 @@ markdown_extensions:
|
||||
- footnotes
|
||||
- md_in_html
|
||||
- tables
|
||||
- markdown_grid_tables:
|
||||
hard_linebreaks: false
|
||||
- toc:
|
||||
permalink: true
|
||||
- pymdownx.details
|
||||
|
||||
@ -8,5 +8,6 @@ setuptools>=68.0
|
||||
mkdocs>=1.6
|
||||
mkdocs-material>=9.5
|
||||
mkdocs-gen-files>=0.5
|
||||
markdown-grid-tables>=0.6
|
||||
mkdocs-macros-plugin>=1.0
|
||||
pymdown-extensions>=10.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user