libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

libeufin-ebisync (778B)


      1 server {
      2   include /etc/nginx/mime.types;
      3 
      4   # NOTE:
      5   # - urgently consider configuring TLS instead
      6   # - maybe keep a forwarder from HTTP to HTTPS
      7   listen 80;
      8 
      9   # NOTE:
     10   # - Comment out this line if you have no IPv6
     11   listen [::]:80;
     12 
     13   # NOTE:
     14   # - replace with your actual server name.
     15   server_name localhost;
     16 
     17   access_log /var/log/nginx/libeufin-ebisync.log;
     18   error_log /var/log/nginx/libeufin-ebisync.err;
     19 
     20   location / {
     21     # NOTE: urgently change to 'https' once TLS has been configured.
     22     proxy_set_header X-Forwarded-Proto "$scheme";
     23     proxy_set_header X-Forwarded-Host "localhost";
     24     proxy_set_header X-Forwarded-Prefix /;
     25     # FIXME: should use UNIX domain socket once
     26     # supported by libeufin-ebisync!
     27     proxy_pass http://localhost:8080;
     28   }
     29 
     30 }