[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-deployment] branch master updated: add stage.taler.n
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-deployment] branch master updated: add stage.taler.net as website staging env |
Date: |
Thu, 02 Mar 2017 14:50:54 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 00f44c7 add stage.taler.net as website staging env
00f44c7 is described below
commit 00f44c7b06934632df2ced095e79be6fd3dafe57
Author: Florian Dold <address@hidden>
AuthorDate: Thu Mar 2 14:50:13 2017 +0100
add stage.taler.net as website staging env
---
etc/nginx/sites-enabled/www-stage.site | 97 ++++++++++++++++++++++++++++++++++
1 file changed, 97 insertions(+)
diff --git a/etc/nginx/sites-enabled/www-stage.site
b/etc/nginx/sites-enabled/www-stage.site
new file mode 100644
index 0000000..419c5d1
--- /dev/null
+++ b/etc/nginx/sites-enabled/www-stage.site
@@ -0,0 +1,97 @@
+server {
+ listen 80;
+ listen [::]:80; ## listen for ipv4; this line is default and implied
+ # listen [::]:80 default_server ipv6only=on; ## listen for ipv6
+
+ root /var/www/stage.taler.net;
+
+ # Make site accessible from http://localhost/
+ server_name stage.taler.net;
+
+ rewrite ^ https://$server_name$request_uri? permanent;
+}
+
+server {
+ listen 443 ssl;
+ listen [::]:443 ssl; ## listen for ipv4; this line is default and
implied
+ #listen [::]:80 default_server ipv6only=on; ## listen for ipv6
+
+
+ # Make site accessible from http://localhost/
+ server_name stage.taler.net;
+ include conf.d/talerssl;
+
+ location = / {
+ rewrite_by_lua '
+ if ngx.var.http_accept_language == nil then
+ ngx.redirect("/en/")
+ end
+
+ for lang in (ngx.var.http_accept_language ..
","):gmatch("([^,]*),") do
+ if string.sub(lang, 0, 2) == "en" then
+ ngx.redirect("/en/")
+ end
+ if string.sub(lang, 0, 2) == "de" then
+ ngx.redirect("/de/")
+ end
+ if string.sub(lang, 0, 2) == "fr" then
+ ngx.redirect("/fr/")
+ end
+ if string.sub(lang, 0, 2) == "it" then
+ ngx.redirect("/it/")
+ end
+ if string.sub(lang, 0, 2) == "es" then
+ ngx.redirect("/es/")
+ end
+ end
+
+ ngx.redirect("/en/")
+ ';
+ }
+
+ location / {
+ root /var/www/stage.taler.net;
+ autoindex off;
+ ssi on;
+ #ssi_last_modified on;
+
+ rewrite ^/$ /en/ redirect;
+
+ rewrite ^/(..)/$ /$1/index.html break;
+
+ rewrite ^/(help/empty-wallet)$ /$1.html break;
+ rewrite ^/wallet-installation\.html$ /en/wallet.html redirect;
+ # just to get around cached old redirect
+ rewrite ^/wallet\.en\.html$ /en/wallet.html redirect;
+ }
+
+ gzip on;
+ gzip_disable "msie6";
+ gzip_vary on;
+ gzip_proxied any;
+ gzip_comp_level 6;
+ gzip_buffers 16 8k;
+ gzip_http_version 1.1;
+ gzip_types text/plain text/css application/json
application/x-javascript text/xml application/xml application/xml+rss
text/javascript application/javascript;
+
+
+ location ~* \.(png|jpg|jpeg|gif|ico|svg|js|css)$ {
+ root /var/www/stage.taler.net;
+ expires 1y;
+ }
+
+ # Note: this will go to /var/www/(videos|releases), which we took out
of Git
+ location /videos {
+ root /var/www;
+ expires max;
+ }
+
+ location /releases {
+ root /var/www;
+ autoindex on;
+ }
+
+ location /files {
+ root /var/www;
+ }
+}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-deployment] branch master updated: add stage.taler.net as website staging env,
gnunet <=