fusero-app-boilerplate/nginx
2025-05-15 18:55:18 +02:00
..
generate-selfsigned.sh updates across the board 2025-05-15 15:10:07 +02:00
nginx.conf udpated api proxy 2025-05-15 18:55:18 +02:00
nginx.conf.dev updates across the board 2025-05-15 15:10:07 +02:00
nginx.conf.prod updates across the board 2025-05-15 15:10:07 +02:00
README.md updates across the board 2025-05-15 15:10:07 +02:00

Nginx SSL Reverse Proxy Setup

Generate Self-Signed Certificates

Run this script from the nginx/ directory:

./generate-selfsigned.sh

This will create certs/fusero-selfsigned.crt and certs/fusero-selfsigned.key.

Usage with Docker Compose

  1. Make sure the certs are generated as above.
  2. Start the stack from the project root:
docker compose up -d --build
  • Nginx will listen on ports 443 (HTTPS) and 80 (HTTP, redirected to HTTPS).
  • All traffic will be routed securely to your frontend and backend containers.

Notes

  • Browsers will warn about the self-signed certificate. You can safely bypass this for development/testing.
  • For production, use a trusted certificate authority.