ansible-taler-exchange

Ansible playbook to deploy a production Taler Exchange
Log | Files | Refs | Submodules | README | LICENSE

exchange-nginx.conf.j2 (954B)


      1 server {
      2 
      3   include conf.d/listen.conf.inc;
      4 
      5   server_name {{ exchange_domain }};
      6 
      7 {%if exchange_use_letsencrypt %}
      8   ssl_certificate /etc/letsencrypt/live/exchange/fullchain.pem;
      9   ssl_certificate_key /etc/letsencrypt/live/exchange/privkey.pem;
     10   ssl_trusted_certificate /etc/letsencrypt/live/exchange/chain.pem;
     11 {% else %}
     12   ssl_certificate /etc/nginx/ssl/taler-exchange.crt;
     13   ssl_certificate_key /etc/nginx/ssl/taler-exchange.key;
     14 {% endif %}
     15 
     16   # Bigger than default timeout to support long polling
     17   proxy_read_timeout 6500s;
     18   keepalive_requests 1000000;
     19   keepalive_timeout 6500s;
     20 
     21   error_log /var/log/nginx/{{ exchange_domain }}.err;
     22   access_log /var/log/nginx/{{ exchange_domain }}.log;
     23 
     24   access_log /var/log/nginx/{{ exchange_domain }}.tal taler if=$log_perf;
     25 
     26   location / {
     27      proxy_pass http://unix:/var/run/taler-exchange/httpd/exchange-http.sock;
     28   }
     29 
     30   location /downloads/ {
     31     alias /var/www/downloads/;
     32     autoindex off;
     33   }
     34 }