taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

www-stage.site (2071B)


      1 server {
      2 	listen 80;
      3 	listen   [::]:80; ## listen for ipv4; this line is default and implied
      4  	# 	listen   [::]:80 default_server ipv6only=on; ## listen for ipv6
      5 
      6 	root /home/docbuilder/stage.taler.net;
      7 
      8 	# Make site accessible from http://localhost/
      9 	server_name stage.taler.net;
     10 
     11 	rewrite ^ https://$server_name$request_uri? permanent;
     12 }
     13 
     14 server {
     15        listen 443 ssl;
     16        listen	[::]:443 ssl; ## listen for ipv4; this line is default and implied
     17 	#listen	  [::]:80 default_server ipv6only=on; ## listen for ipv6
     18 
     19 
     20 	# Make site accessible from http://localhost/
     21 	server_name stage.taler.net;
     22 	include conf.d/talerssl;
     23 
     24 	location / {
     25 	    root /home/docbuilder/stage.taler.net;
     26 	    autoindex off;
     27 
     28 	    rewrite ^/$ /$index_redirect_uri/ redirect;
     29 
     30 	    rewrite ^/(..)/$ /$1/index.html break;
     31 
     32 	    rewrite ^/(help/empty-wallet)$ /$1.html break;
     33 	    rewrite ^/wallet-installation\.html$ /en/wallet.html redirect;
     34             # just to get around cached old redirect
     35 	    rewrite ^/wallet\.en\.html$ /en/wallet.html redirect;
     36  	    rewrite ^/wallet$ /en/wallet.html redirect;
     37             rewrite ^/press$ /en/press.html redirect;
     38 
     39 	}
     40 
     41         gzip on;
     42         gzip_disable "msie6";
     43         gzip_vary on;
     44         gzip_proxied any;
     45         gzip_comp_level 6;
     46         gzip_buffers 16 8k;
     47         gzip_http_version 1.1;
     48         gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
     49 
     50 
     51 	# Note: this will go to /var/www/(videos|releases), which we took out of Git
     52 	location /videos {
     53 	    root /var/www;
     54             expires max;
     55 	}
     56 
     57         location ~* /videos/.*\.(png|jpg|ogv|webm|gif|svg)$ {
     58             root /var/www;
     59             expires max;
     60         }
     61 
     62         # FIXME: this location newest files are from Oct'16
     63 	location /releases {
     64 	    root /var/www;
     65 	    autoindex on;
     66 	}
     67 
     68 	location /files {
     69 	    root /var/www;
     70 	}
     71 
     72         location ~* \.(png|jpg|jpeg|gif|ico|svg|js|css)$ {
     73 	    root /home/docbuilder/stage.taler.net;
     74             expires 1y;
     75         }
     76 
     77 
     78 }