Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2019-06-28 13:35:29 +0300
committerMax Wittig <max.wittig@siemens.com>2019-07-12 15:37:16 +0300
commit5199c4c8b646f3e66b0f03dd51fbaa704d9fd94f (patch)
treec60baf57319ea68b7b7213c4bba07662ced06d86 /README.md
parent7d39822ce2221156c3479ceae0e4f8e24c7373b2 (diff)
feat: add flag to define custom response headers
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7ac92ebe..eb2856f3 100644
--- a/README.md
+++ b/README.md
@@ -234,6 +234,17 @@ values are `ssl3`, `tls1.0`, `tls1.1`, `tls1.2`, and `tls1.3` (if supported). Wh
is used GitLab Pages will add `tls13=1` to `GODEBUG` to enable TLS 1.3.
See https://golang.org/src/crypto/tls/tls.go for more.
+### Custom headers
+
+To specify custom headers that should be send with every request on GitLab pages use the `-header` argument.
+
+You can add as many headers as you like.
+
+Example:
+```sh
+./gitlab-pages -header "Content-Security-Policy: default-src 'self' *.example.com" -header "X-Test: Testing" ...
+```
+
### Configuration
The daemon can be configured with any combination of these methods: