https://github.com/l1ve4code/frontend-x-backend-nginx
Template for creating a web application with an SSL certificate
https://github.com/l1ve4code/frontend-x-backend-nginx
certbot docker nginx ssl
Last synced: about 1 year ago
JSON representation
Template for creating a web application with an SSL certificate
- Host: GitHub
- URL: https://github.com/l1ve4code/frontend-x-backend-nginx
- Owner: l1ve4code
- License: apache-2.0
- Created: 2025-01-08T14:41:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-08T15:25:09.000Z (about 1 year ago)
- Last Synced: 2025-01-25T18:15:01.985Z (about 1 year ago)
- Topics: certbot, docker, nginx, ssl
- Language: Dockerfile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SSL NGINX TEMPLATE
## About
This is a template for creating a web application with an **SSL certificate**
### Technologies
- Technologies: **Nginx, Certbot, Docker**
### Resources
- [https-using-nginx-certbot-docker](https://mindsers.blog/en/post/https-using-nginx-certbot-docker/)
- [react-js-application-showing-404-not-found-in-nginx-server](https://stackoverflow.com/questions/43555282/react-js-application-showing-404-not-found-in-nginx-server)
## Installing
- **[1]** Run the following command in the terminal `mkdir frontend && mkdir certbot`
- **[2]** Move your **frontend project** to the **frontend folder**
- **[3]** In the **nginx/nginx.conf** file, replace **your-url.net** to **your domain**
- **[4]** In the **nginx/nginx.conf** file, add: **ssl_certificate, ssl_certificate_key**; to the **comment**
- **[5]** Run the following command in the terminal `docker compose -f nginx.yml up -d`
- **[6]** Run the following command in the terminal `docker compose -f certbot.yml run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ --dry-run -d your-url.net`
- **[7]** Run the following command in the terminal `docker compose -f certbot.yml run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ -d your-url.net`
- **[8]** In the **nginx/nginx.conf** file, remove: **ssl_certificate, ssl_certificate_key**; from the **comment**
- **[9]** Run the following command in the terminal `docker compose -f nginx.yml restart`
## Author
* Telegram: **[@live4code](https://t.me/live4code)**
* Email: **steven.marelly@gmail.com**