aadii104

aadii104

Hello,
I am trying to figure out a way to use let’s encrypt SSL certificate with the phoenix by putting it into file structure ( for now I don’t care about updation problem ).
It would be helpful if someone can guide me with the nginx configuration as there are a bit confusing samples for the new comers :sweat_smile:.
Please explain how can I redirect the port 443 (https, I believe) to phoenix port 4000.
Thanks for the help :slightly_smiling_face:

Showing Posts 1 to 5

OvermindDL1

OvermindDL1

Well I use certbot’s nginx plugin, and it automatically added these to the domains it managed:

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/the_site/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/the_site/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

But it was all automatic. Just setup Phoenix behind nginx as normal, then use something like certbot to do the rest for you. :slight_smile:

outlog

outlog

think these articles should help you get there:

especially this one: (that is already linked by @amnu3387)

https://medium.com/@zek/secure-your-phoenix-app-with-free-ssl-48ac749c17d7

wmnnd

wmnnd

Are you looking for the documentation on proxy_pass?

For my deployments I also use the following settings for the forwarding:

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
aadii104

aadii104 OP

Wow,
I mean thanks guys, it’s really awesome to see that this many experienced person came to save a beginner, I am highly thankful to u all.

With this I believe I will have a good start and learning of concept and I’ll post any doubt in thread here if I got any.:sweat_smile:
( Sorry for off topic reply).

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews