Jungle Coder

The musings of a third culture coder and missionary kid

Adventures in using Nginx as a reverse proxy

Lately I’ve been trying to learn how to run more than one web application on a web server. I understand this often involves using nginx as a reverse proxy. I’ve been interested in rewriting my blog in Elixir/Phoenix, but I want to keep the current blog up while I’m making the changes. So I’ve been stumbling through nginx reverse proxy tutorials. I will be taking notes into this post about various things that I’ve learned about how to set up nginx as a reverse proxy for golang applications like this blog.

Currently my config is below:

Some notes:

That’s all for now.

server {
        listen 443;
        server_name junglecoder.com;

        ssl on;
        ssl_certificate /etc/letsencrypt/live/junglecoder.com/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/junglecoder.com/privkey.pem;

        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        ssl_session_timeout 5m;
        ssl_session_cache shared:SSL:50m;
        # ssl_stapling on;
        # ssl_stapling_verify on;

        location / {
                proxy_cookie_domain localhost junglecoder.com;
                proxy_pass http://localhost:8080;
Previously: PowerShell: Organizing Desktop Detrius into Dated Folders
Next: Ideas for LD36


There are no comments for this article yet.

Reqired fields are marked with a '*'