Skip to content

Instantly share code, notes, and snippets.

Created May 16, 2021 18:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
proxy server with for port 3000 with ssl enabled
GNU nano 4.8 # sample nginx.conf
# proxy requests to Metabase instance
server {
listen 80;
listen [::]:80;
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
location / {
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
# Redirect non-https traffic to https
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
Copy link

Guide to create ssl-cert with certbot.
While creating ssl cert, it's probably important to link to actual domain (not sure about this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment