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 characters
| window.addEventListener('message', function(event) { | |
| console.log("test"); | |
| var links = document.querySelectorAll("a"); | |
| for( var i = 0; i < links.length ; i++ ){ | |
| links[i].addEventListener("click" , function(e){ | |
| if(event.data.iframeDisableLink){ | |
| e.preventDefault(); | |
| } | |
| window.parent.postMessage({ | |
| url: this.href |
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 characters
| { | |
| "genesis_file": "genesis.json", | |
| "genesis_records_file": null, | |
| "validator_key_file": "validator_key.json", | |
| "node_key_file": "node_key.json", | |
| "rpc": { | |
| "addr": "0.0.0.0:3030", | |
| "prometheus_addr": null, | |
| "cors_allowed_origins": [ | |
| "*" |
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 characters
| #!/bin/bash | |
| # Introduction: This script automates the creation of an NGINX configuration for a virtual host that acts as a reverse proxy. | |
| # It is useful for setting up an NGINX domain as a reverse proxy for your Node.js app on a self-hosted env instead of have to use Versuck or Netlifsuck. | |
| # The script automatically configures the domain for your Node.js app with SSL, optimized to work with Cloudflare SSL. | |
| # Before you run this script, make sure to have: Nginx + Certbot installed + configured the domain first so that Certbot can obtain the SSL certificate. | |
| # Usage: nginx-create-site your.domain.com --proxy=127.0.0.1:3000 | |
| DOMAIN=$1 | |
| PROXY_ARG=$2 |
OlderNewer