Skip to content
Snippets Groups Projects

Draft: redirects: Support redirect backed by a map

Closed Kristian Klausen requested to merge klausenbusk/infrastructure:bugs-redirect into master
2 files
+ 2
0
Compare changes
  • Side-by-side
  • Inline
Files
2
# Every entry creates a redirect listening on port 80 and 443 with the following parameters:
# - domain: the domain to listen on
# - to: the redirect target as defined by the nginx return statement
# - type: HTTP status code to use (302 = temporary redirect, 301 = permanent redirect)
# - type: (simple, map)
# - http_code: HTTP status code to use (302 = temporary redirect, 301 = permanent redirect)
redirects:
- mailman:
domain: mailman.archlinux.org
to: https://lists.archlinux.org$request_uri
type: 301
http_code: 301
- static.conf:
domain: static.conf.archlinux.org
to: https://gitlab.archlinux.org/archlinux/conf-files/-/raw/master$request_uri
type: 302
http_code: 302
- bugs:
domain: bugs.archlinux.org
to: gitlab.archlinux.org
type: map
http_code: 302
Loading