N
Novu11mo ago
SaMMaHeTa

Enable SSL

How can i configure SSL for all aaps? can you please guide me?
17 Replies
madd
madd11mo ago
I would set some reverse proxy like nginx for that and terminate SSL hardest part in nginx configuration is upgrading http to ws: https://discord.com/channels/895029566685462578/1125843890860195881/1126091183907680327
SaMMaHeTa
SaMMaHeTa10mo ago
Hello @madd.man can you please give me example or any referance link which i can follow
madd
madd10mo ago
here you have port of each app
SaMMaHeTa
SaMMaHeTa10mo ago
Thanks for replay, ports i know. but i need something from where i can configure exact SSL
Novu_Bot
Novu_Bot10mo ago
@sammaheta, you just advanced to level 2!
SaMMaHeTa
SaMMaHeTa10mo ago
currently i am trying to create proxy server for this
madd
madd10mo ago
Hussein Nasser
YouTube
NginX Crash Course (Layer 4 & Layer 7 Proxy, HTTPS, TLS 1.3, HTTP/2...
Audio Fixed + Bonus Content NGINX Crash Course here https://youtu.be/hcw-NjOh8r0 NginX is an open source web server written in C and can also be used as a reverse proxy and a load balancer. In this video, I want to go through the following topics in NginX Download Slides here https://payhip.com/b/620K Chapters 0:00 Intro 2:25 What is NginX...
SaMMaHeTa
SaMMaHeTa10mo ago
its for "Members-only content"
madd
madd10mo ago
ah yes
SaMMaHeTa
SaMMaHeTa10mo ago
i think i know now how to enable it checking and doing something
madd
madd10mo ago
https://nginx.org/en/docs/http/configuring_https_servers.html official docs Do you serve frontend from nginx or plan to host it seperately?
SaMMaHeTa
SaMMaHeTa10mo ago
i have host everything in linux apache server
madd
madd10mo ago
Novu WS service uses socket.io under the hood, so this can be useful: https://socket.io/docs/v3/reverse-proxy/
SaMMaHeTa
SaMMaHeTa10mo ago
Checking @madd.man
dksavai
dksavai10mo ago
Hello @sammaheta Please follow below Script for Apache Server - <VirtualHost *:443> ServerName yoursite.example.com SSLEngine On SSLCertificateFile /home/ssl/novu.crt SSLCertificateKeyFile /home/ssl/novu.key ProxyPreserveHost On ProxyPass / http://localhost:4200/ ProxyPassReverse / http://localhost:4200/ ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
SaMMaHeTa
SaMMaHeTa10mo ago
Thank you so much @dksavai it's perfectly working