Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save fuyuton/5f30c3f96d75d5cec1cee52f70bf3e91 to your computer and use it in GitHub Desktop.

Select an option

Save fuyuton/5f30c3f96d75d5cec1cee52f70bf3e91 to your computer and use it in GitHub Desktop.

Revisions

  1. @wakiyamap wakiyamap revised this gist Feb 17, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nginx for blockbook(monacoin ver.)
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ server {
    location / {
    add_header Access-Control-Allow-Origin '*' always;

    proxy_pass https://[::]:19141;
    proxy_pass https://[::]:9141;

    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  2. @wakiyamap wakiyamap revised this gist Feb 17, 2019. 1 changed file with 13 additions and 6 deletions.
    19 changes: 13 additions & 6 deletions nginx for blockbook(monacoin ver.)
    Original file line number Diff line number Diff line change
    @@ -10,14 +10,21 @@ server {
    ssl_verify_client on;

    server_name blockbook.electrum-mona.org;
    location /socket.io/ {
    proxy_pass http://websocket;
    location / {
    add_header Access-Control-Allow-Origin '*' always;

    proxy_pass https://[::]:19141;

    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header X-NginX-Proxy true;

    # Enables WS support
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_redirect off;
    }
    location / {
    add_header Access-Control-Allow-Origin '*' always;
    proxy_pass https://localhost:9141;
    }

    }
  3. @wakiyamap wakiyamap revised this gist Feb 17, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nginx for blockbook(monacoin ver.)
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,6 @@ server {
    }
    location / {
    add_header Access-Control-Allow-Origin '*' always;
    proxy_pass http://localhost:9141;
    proxy_pass https://localhost:9141;
    }
    }
  4. @wakiyamap wakiyamap revised this gist Feb 3, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion nginx for blockbook(monacoin ver.)
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@
    upstream websocket {
    server localhost:9141;
    }
    server { listen 443 ssl;
    server {
    listen 443 ssl;
    ssl on;
    ssl_certificate /etc/nginx/certs/electrum-mona.org.pem;
    ssl_certificate_key /etc/nginx/certs/electrum-mona.org.key;
    @@ -16,6 +17,7 @@ server { listen 443 ssl;
    proxy_set_header Connection "upgrade";
    }
    location / {
    add_header Access-Control-Allow-Origin '*' always;
    proxy_pass http://localhost:9141;
    }
    }
  5. @wakiyamap wakiyamap created this gist Feb 3, 2019.
    21 changes: 21 additions & 0 deletions nginx for blockbook(monacoin ver.)
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    upstream websocket {
    server localhost:9141;
    }
    server { listen 443 ssl;
    ssl on;
    ssl_certificate /etc/nginx/certs/electrum-mona.org.pem;
    ssl_certificate_key /etc/nginx/certs/electrum-mona.org.key;
    ssl_client_certificate /etc/nginx/certs/cloudflare.crt;
    ssl_verify_client on;

    server_name blockbook.electrum-mona.org;
    location /socket.io/ {
    proxy_pass http://websocket;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    }
    location / {
    proxy_pass http://localhost:9141;
    }
    }