You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
proxy_pass http://127.0.0.1:3000; # set the address of the Node.js instance here
91
+
}
92
+
93
+
listen 443 ssl; # managed by Certbot
94
+
ssl_certificate /etc/letsencrypt/live/fullstackjack.dev/fullchain.pem; # managed by Certbot
95
+
ssl_certificate_key /etc/letsencrypt/live/fullstackjack.dev/privkey.pem; # managed by Certbot
96
+
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
97
+
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
98
+
99
+
}
100
+
101
+
102
+
server {
103
+
if ($host = fullstackjack.dev) {
104
+
return 301 https://$host$request_uri;
105
+
} # managed by Certbot
106
+
107
+
108
+
listen 80;
109
+
server_name fullstackjack.dev;
110
+
return 404; # managed by Certbot
111
+
112
+
113
+
}
114
+
115
+
```
116
+
117
+
If you want SSL, which you most likely will, you can use [certbot]https://certbot.eff.org/instructions?ws=nginx&os=ubuntufocal) for free.
118
+
119
+
Note: you can do all of this tutorial without setting up SSL.
120
+
121
+
122
+
## Bird's Eye View
19
123
20
124

0 commit comments