diff options
author | Max Wittig <max.wittig@siemens.com> | 2019-06-28 13:35:29 +0300 |
---|---|---|
committer | Max Wittig <max.wittig@siemens.com> | 2019-07-12 15:37:16 +0300 |
commit | 5199c4c8b646f3e66b0f03dd51fbaa704d9fd94f (patch) | |
tree | c60baf57319ea68b7b7213c4bba07662ced06d86 /README.md | |
parent | 7d39822ce2221156c3479ceae0e4f8e24c7373b2 (diff) |
feat: add flag to define custom response headers
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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: |