This file contains 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
#!/usr/bin/env bash | |
# Ensure the script is run as root or with sudo | |
if [ "$(id -u)" != "0" ]; then | |
echo "Please run this script as root (sudo)." | |
exit 1 | |
fi | |
read -sp "Enter the desired Redis password: " REDIS_PASS | |
echo |
This file contains 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 | |
# Colors for output | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[1;33m' | |
NC='\033[0m' # No Color | |
# Function to print colored messages | |
print_message() { |
This file contains 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
{ | |
"meta": { | |
"templateCredsSetupCompleted": true, | |
"instanceId": "88afde21e58448104568b5b2d12a89cf65d9b2abb55492a8c004ceef2395c4dd" | |
}, | |
"nodes": [ | |
{ | |
"parameters": { | |
"options": {} | |
}, |
This file contains 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
{ | |
"meta": { | |
"templateCredsSetupCompleted": true, | |
"instanceId": "88afde21e58448104568b5b2d12a89cf65d9b2abb55492a8c004ceef2395c4dd" | |
}, | |
"nodes": [ | |
{ | |
"parameters": { | |
"fields": { | |
"values": [ |
This file contains 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
const express = require('express'); | |
const { createProxyMiddleware } = require('http-proxy-middleware'); | |
const url = require('url'); | |
const app = express(); | |
app.use('/', (req, res, next) => { | |
const targetUrl = req.query.url; | |
if (!targetUrl) { |