Skip to content

This is a script that automates the creation of the Nginx server blocks and adds Lets encrypt to all the domains

Notifications You must be signed in to change notification settings

cavewebs/nginx-server-blocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

nginx-server-blocks

This is a script that automates the creation of the Nginx server blocks and adds Lets encrypt to all the domains

How to use the script

simply call the script

Using CURL

curl -o create_subdomains.sh https://raw.githubusercontent.com/cavewebs/nginx-server-blocks/main/create_subdomains.sh && chmod +x create_subdomains.sh && ./create_subdomains.sh && rm create_subdomains.sh

Using WGET

wget -O create_subdomains.sh https://raw.githubusercontent.com/cavewebs/nginx-server-blocks/main/create_subdomains.sh && chmod +x create_subdomains.sh && ./create_subdomains.sh && rm create_subdomains.sh

you will be prompted to enter how many subdomains you wont to create

Next enter the name of the domains seperated by a comma (if more than 1)

at the end, you will be asked if you want to create SSL certifcates for them, if you choose yes, the certificates will be created using Letsencrypt/certbot

at the end, the script will be deleted from your server.

Thats all. Please give a star if you found this useful If you found a bug or have a wishlist, open and issue. Improvements are welcome too

Buy me coffee

If you would like to please buy me a coffee

About

This is a script that automates the creation of the Nginx server blocks and adds Lets encrypt to all the domains

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages