Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Collection of scripts that automate creating proxies for nginx server

License

Notifications You must be signed in to change notification settings

mightykatun/nginx-proxy-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

31 Commits

Repository files navigation

Nginx-proxy Automation

Collection of scripts to automate the creation and management of proxies for an Nginx proxy 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:
    sudo chmod +x <script>

Usage

mkproxy

Creates an Nginx proxy.

sudo mkproxy <subdomain> <port>

rmproxy

Removes a specified proxy and creates a backup.

sudo rmproxy <subdomain>

lsproxy

Lists all active proxies created by the script.

sudo lsproxy

Certificate Generation

To generate certificates, use the certbot package: Certbot GitHub

About

Collection of scripts that automate creating proxies for nginx server

Topics

Resources

License

Stars

Watchers

Forks

Languages

AltStyle によって変換されたページ (->オリジナル) /