Forked from wakiyamap/nginx for blockbook(monacoin ver.)
Created
April 4, 2024 13:15
-
-
Save fuyuton/5f30c3f96d75d5cec1cee52f70bf3e91 to your computer and use it in GitHub Desktop.
Revisions
-
wakiyamap revised this gist
Feb 17, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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://[::]:9141; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -
wakiyamap revised this gist
Feb 17, 2019 . 1 changed file with 13 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 / { 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; } } -
wakiyamap revised this gist
Feb 17, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,6 +18,6 @@ server { } location / { add_header Access-Control-Allow-Origin '*' always; proxy_pass https://localhost:9141; } } -
wakiyamap revised this gist
Feb 3, 2019 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,8 @@ 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; @@ -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; } } -
wakiyamap created this gist
Feb 3, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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; } }