Via a simple menu you can easily create and renew a webserver with SSL certificates for free
Using Let's Encrypts client called Certbot, a new certificate is generated quick and easily. The docker image is modified and based on Jonas Alfredssons repository docker-nginx-certbot which is "built on top of the official Nginx Docker images", alpine version. The webserver script is modified and based on a arrow key menu by miu in a thread on stackexchange called Arrow key/Enter menu.
🕵🏽 Report Bug
-
✍🏼 Contact
-
🙇 Request Feature
This project is still under development which means it have not been tested on other machines, USE AT YOUR OWN RISK.
Your system must have these following packages installed:
As mentioned above, USE AT YOUR OWN RISK.
- Clone this repo and cd into directory
sudo curl -o /usr/local/bin/webserver -L https://github.com/GnussonNet/webserver/releases/latest/download/webserver && sudo chmod +x /usr/local/bin/webserver
For now simply remove the file form /usr/local/bin with rm
(DO AT YOUR OWN RISK)
- Clone this repo and cd into directory
sudo rm -rf /usr/local/bin/webserver
This script is farley straight forward to use
-
Run the script
webserver [OPTIONS] [ARGUMENTS]
Then follow the instructions on the screen
Option | Arguments | Description |
---|---|---|
-m | dev/development prod/production |
Skips first question regarding dev/prod menu |
-d | domain.com |
Your domain is passed to Certbot and NGINX |
-f | PATH to frontend directory |
Path to your frontend directory |
-c | PATH to nginx config file |
Path to your nginx config file |
-p | 0-9999 |
Port to expose host (only development) |
-e | name@domain.com |
Email to register certificate (passed directly to Certbot) |
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Filip "Gnusson" Magnusson - @GnussonNet - admin@gnusson.net
Project Link: Github.com/GnussonNet/dockerized-webserver
Special thanks to the below users who gave me a great start when creating this project.
- Jonas Alfredssons repository docker-nginx-certbot
- Mius arrow menu Arrow key/Enter menu
- othneildrews readme template Best README Template