Skip to content

Instantly share code, notes, and snippets.

@sytzez
sytzez / nginx-enabled-site-config
Created April 15, 2023 18:43
Hosting a Rails app through HTTPS using Nginx and Puma
server {
listen 443 ssl;
server_name myapp.com;
ssl_certificate /home/my_app/server.crt;
ssl_certificate_key /home/my_app/server.key;
location / {
proxy_set_header Host $http_host;