iuna

iuna

iuna - experimental mainnet-candidate protocol
git clone https://getiuna.org/git/iuna.git
Log | Files | Refs | README | LICENSE

nginx.conf (1069B)


      1 server {
      2     listen 80;
      3     server_name _;
      4 
      5     root /usr/share/nginx/html;
      6     index index.html;
      7 
      8     location = /wallet {
      9         return 301 https://wallet.getiuna.org/;
     10     }
     11 
     12     location /wallet/ {
     13         rewrite ^/wallet/(.*)$ https://wallet.getiuna.org/$1 permanent;
     14     }
     15 
     16     location / {
     17         try_files $uri $uri/ =404;
     18     }
     19 
     20     location = /downloads/latest.json {
     21         add_header Access-Control-Allow-Origin "*" always;
     22         add_header Cache-Control "no-cache" always;
     23         try_files $uri =404;
     24     }
     25 
     26     location = /downloads/desktop/latest.json {
     27         add_header Access-Control-Allow-Origin "*" always;
     28         add_header Cache-Control "no-cache" always;
     29         try_files $uri =404;
     30     }
     31 
     32     location /downloads/ {
     33         autoindex on;
     34         try_files $uri $uri/ =404;
     35     }
     36 
     37     location /git/ {
     38         try_files $uri $uri/ =404;
     39     }
     40 }
     41 
     42 server {
     43     listen 80;
     44     server_name wallet.getiuna.org;
     45 
     46     root /usr/share/nginx/html/wallet;
     47     index index.html;
     48 
     49     location / {
     50         try_files $uri $uri/ /index.html;
     51     }
     52 }