elections: clean up some old stuff from the old site and add redirect to new.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
a1b0b5e99b
commit
73dae59db8
4 changed files with 7 additions and 27 deletions
|
@ -79,6 +79,12 @@
|
||||||
regex: /(.*)$
|
regex: /(.*)$
|
||||||
target: https://paste.fedoraproject.org/$1
|
target: https://paste.fedoraproject.org/$1
|
||||||
|
|
||||||
|
- role: httpd/redirectmatch
|
||||||
|
shortname: elections
|
||||||
|
website: admin.fedoraproject.org
|
||||||
|
regex: /voting
|
||||||
|
target: https://elections.fedoraproject.org/
|
||||||
|
|
||||||
- role: httpd/redirectmatch
|
- role: httpd/redirectmatch
|
||||||
shortname: mailman
|
shortname: mailman
|
||||||
website: admin.fedoraproject.org
|
website: admin.fedoraproject.org
|
||||||
|
|
|
@ -307,7 +307,7 @@ children:
|
||||||
automatically.
|
automatically.
|
||||||
- name: Elections
|
- name: Elections
|
||||||
data:
|
data:
|
||||||
url: https://admin.fedoraproject.org/voting
|
url: https://elections.fedoraproject.org/
|
||||||
source_url: https://github.com/fedora-infra/elections
|
source_url: https://github.com/fedora-infra/elections
|
||||||
bugs_url: https://github.com/fedora-infra/elections/issues
|
bugs_url: https://github.com/fedora-infra/elections/issues
|
||||||
docs_url: https://github.com/fedora-infra/elections/blob/develop/README.rst
|
docs_url: https://github.com/fedora-infra/elections/blob/develop/README.rst
|
||||||
|
|
|
@ -64,18 +64,6 @@ backend mirror-lists-backend
|
||||||
option httpchk GET /metalink?repo=epel-7&arch=x86_64
|
option httpchk GET /metalink?repo=epel-7&arch=x86_64
|
||||||
option allbackups
|
option allbackups
|
||||||
|
|
||||||
frontend voting-frontend
|
|
||||||
bind 0.0.0.0:10007
|
|
||||||
default_backend voting-backend
|
|
||||||
|
|
||||||
backend voting-backend
|
|
||||||
balance hdr(appserver)
|
|
||||||
server elections01 elections01:80 check inter 10s rise 2 fall 4
|
|
||||||
{% if env == "production" %}
|
|
||||||
server elections02 elections02:80 check inter 10s rise 2 fall 4
|
|
||||||
{% endif %}
|
|
||||||
option httpchk GET /voting/
|
|
||||||
|
|
||||||
frontend mirrormanager-frontend
|
frontend mirrormanager-frontend
|
||||||
bind 0.0.0.0:10008
|
bind 0.0.0.0:10008
|
||||||
default_backend mirrormanager-backend
|
default_backend mirrormanager-backend
|
||||||
|
|
|
@ -47,12 +47,6 @@ backend nuancier {
|
||||||
.port = "10035";
|
.port = "10035";
|
||||||
}
|
}
|
||||||
|
|
||||||
backend voting {
|
|
||||||
.host = "localhost";
|
|
||||||
.port = "10007";
|
|
||||||
.first_byte_timeout = 160s;
|
|
||||||
}
|
|
||||||
|
|
||||||
backend mirrormanager {
|
backend mirrormanager {
|
||||||
.host = "localhost";
|
.host = "localhost";
|
||||||
.port = "10008";
|
.port = "10008";
|
||||||
|
@ -184,14 +178,6 @@ sub vcl_recv {
|
||||||
set req.url = regsub(req.url, "\?.*", "");
|
set req.url = regsub(req.url, "\?.*", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (req.url ~ "^/voting/") {
|
|
||||||
set req.backend_hint = voting;
|
|
||||||
if (req.url ~ "^/voting/static/") {
|
|
||||||
unset req.http.cookie;
|
|
||||||
set req.http.clear-cookies = "yes";
|
|
||||||
set req.url = regsub(req.url, "\?.*", "");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (req.url ~ "^/mirrormanager") {
|
if (req.url ~ "^/mirrormanager") {
|
||||||
set req.backend_hint = mirrormanager;
|
set req.backend_hint = mirrormanager;
|
||||||
if (req.url ~ "^/mirrormanager/static/") {
|
if (req.url ~ "^/mirrormanager/static/") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue