Skip to content

Instantly share code, notes, and snippets.

View conaticus's full-sized avatar

Sam conaticus

View GitHub Profile
@conaticus
conaticus / nginx_react_express_deployment.md
Last active September 24, 2023 14:37
A guide for using NGINX Web Server with React and Express with a domain and SSL certificate (Ubuntu)

Using NGINX Web Server with React and Express with a domain and SSL certificate (Ubuntu)

Introduction

For this to work, we are going serve React's static files for the client, and are going to proxy our Express server to /api.

Disclaimer - Ensure you are the root user, otherwise some of these commands may not work. The Express app also needs to server under a seperate route from the client (e.g /api), so all backend routes will look like this: /api/signup.

Steps

Installation