[redirects-web/proxy] Add gtk.org
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [redirects-web/proxy] Add gtk.org
- Date: Fri, 19 Mar 2021 12:40:41 +0000 (UTC)
commit 51988fce57c3021d842afe4b22aff772ff30a46b
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Fri Mar 19 13:37:53 2021 +0100
Add gtk.org
conf.d/gtk.org.conf | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
---
diff --git a/conf.d/gtk.org.conf b/conf.d/gtk.org.conf
new file mode 100644
index 0000000..8819d1a
--- /dev/null
+++ b/conf.d/gtk.org.conf
@@ -0,0 +1,20 @@
+server {
+ listen 8080;
+ listen [::]:8080;
+ server_name gtk.org www.gtk.org;
+
+ location / {
+ rewrite ^/api/2.6/gdk/ https://developer.gnome.org/gdk2/ permanent;
+ rewrite ^/api/2.6/gtk/ https://developer.gnome.org/gtk2/ permanent;
+ rewrite ^/api/2.6/$ https://developer.gnome.org/gtk2/ permanent;
+ rewrite ^/api/2.6/(.*) https://developer.gnome.org/$1 permanent;
+
+ proxy_set_header Host teams.pages.gitlab.gnome.org;
+ proxy_set_header X-Forwarded-Host "";
+ proxy_pass https://infrastructure.pages.gitlab.gnome.org/gtk-web/;
+ }
+
+ location /.well-known/acme-challenge {
+ return 301 https://letsencrypt.gnome.org$request_uri;
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]