Skip to content

Instantly share code, notes, and snippets.

```
#!/bin/bash
# Configuration files
CONFIG_FILE1="/etc/nginx/ugreen_redirect.conf"
CONFIG_FILE2="/etc/nginx/ugreen_ssl_redirect.conf"
# Search and replace patterns for ugreen_redirect.conf
SEARCH_LISTEN1="listen 80;"
REPLACE_LISTEN1="listen 8081;"