Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mightykatun/nginx-proxy-automation
Collection of scripts that automate creating proxies for nginx server
https://github.com/mightykatun/nginx-proxy-automation
automation nginx nginx-configuration nginx-docker nginx-proxy script
Last synced: about 1 month ago
JSON representation
Collection of scripts that automate creating proxies for nginx server
- Host: GitHub
- URL: https://github.com/mightykatun/nginx-proxy-automation
- Owner: mightykatun
- License: mit
- Created: 2024-09-10T06:04:54.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-22T07:29:51.000Z (about 2 months ago)
- Last Synced: 2024-11-22T08:25:31.981Z (about 2 months ago)
- Topics: automation, nginx, nginx-configuration, nginx-docker, nginx-proxy, script
- Language: Shell
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nginx-Proxy-Automation
Collection of scripts to automate the creation and management of proxies for an Nginx server.
## Contents
This repository includes three primary scripts:
- **mkproxy**: Creates an Nginx proxy for `subdomain.mydomain.com` on a specified port.
- **rmproxy**: Removes proxy files created by `mkproxy` and creates an inactive backup in `/etc/nginx/sites-available/backup/`.
- **lsproxy**: Lists active proxies created by `mkproxy`.## Requirements
- The scripts require administrative privileges to run.
- Ensure `DOMAIN_NAME` and `NGINX_PATH` variables are updated according to your setup.
- Place the scripts in your binary directory (e.g. `/usr/local/bin/`) and make them executable:
```shell
sudo chmod +x
```## Usage
### mkproxy
Creates an Nginx proxy.
```shell
sudo mkproxy <subdomain> <port>
```### rmproxy
Removes a specified proxy and creates a backup.
```shell
sudo rmproxy <subdomain>
```### lsproxy
Lists all active proxies.
```shell
sudo lsproxy
```## Certificate Generation
To generate certificates, use the `certbot` package:
[Certbot GitHub](https://github.com/certbot)