harrisyn
harrisyn
NNovu
Created by harrisyn on 7/4/2023 in #💬│support
How do you create a subscriber using the Notification Center for React
Hi, apologies, I have been away, did you find a solution?
16 replies
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
either way works, I find it cleaner to simply create a subdomain and point to the same IP, then use nginx to proxy it to the needed service. if you created a novu.yourdomain.tld, you could simply replace the server_name placeholder and you will be good to go (asides making sure you have the right certs for it) You could also simply upd ate the location paths i.e. instead of / you do /novu/ etc. it should give the same result
25 replies
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
I am curious, is there a specific reason you want to maintain /novu/* as your proxy paths? instead of using a subdomain?
25 replies
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
the "yourdomain.tld" is what you need to change
25 replies
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
my env context is same as above
25 replies
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
the attached is the base of my nginx
25 replies
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
ok
25 replies
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
are you running docker containers or a local install?
25 replies
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
@Stephen this is for caddy, not nginx. I was previously using similar for nginx, so if you are interested I can dig that up as well.
25 replies
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
@unicodeveloper @Emil might help to add this to the documentation
25 replies
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
this config works with running docker containers, replace api, widget, ws with the actual names of your containers or addresses if you aren't running using the docker-compose file. the Context paths in the env are configured as
# Context Paths
# Only needed for setups with reverse-proxies
GLOBAL_CONTEXT_PATH=
WEB_CONTEXT_PATH=
API_CONTEXT_PATH=api
WS_CONTEXT_PATH=ws
WIDGET_CONTEXT_PATH=widget
# Context Paths
# Only needed for setups with reverse-proxies
GLOBAL_CONTEXT_PATH=
WEB_CONTEXT_PATH=
API_CONTEXT_PATH=api
WS_CONTEXT_PATH=ws
WIDGET_CONTEXT_PATH=widget
25 replies
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
for anyone else who stumbles upon this. This is my example caddyfile that works
{
#debug
# Global options block. Entirely optional, https is on by default
# Optional email key for lets encrypt, uncomment the below to set the email i.e. email [email protected]
}

(static) {
@static {
file
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.json
}
header @static Cache-Control max-age=5184000
}

(security) {
header {
# enable HSTS
Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
# disable clients from sniffing the media type
X-Content-Type-Options nosniff
# keep referrer data off of HTTP connections
Referrer-Policy no-referrer-when-downgrade
}
}

(404) {
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
handle @404 {
respond * "Not found" 404
}
}
}

yourdomain.com {
reverse_proxy web:4200
@ws {
header Connection *Upgrade*
header Upgrade websocket
}
handle /api/* {
# CORS settings
header Access-Control-Allow-Origin *
header Access-Control-Allow-Methods 'GET, POST, PUT, DELETE'
header Access-Control-Allow-Headers 'Content-Type, Authorization'

# Proxy settings, strip /api prefix before proxying
reverse_proxy api:3000
}

reverse_proxy @ws ws:3002
reverse_proxy /widget widget:4500
}
{
#debug
# Global options block. Entirely optional, https is on by default
# Optional email key for lets encrypt, uncomment the below to set the email i.e. email [email protected]
}

(static) {
@static {
file
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.json
}
header @static Cache-Control max-age=5184000
}

(security) {
header {
# enable HSTS
Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
# disable clients from sniffing the media type
X-Content-Type-Options nosniff
# keep referrer data off of HTTP connections
Referrer-Policy no-referrer-when-downgrade
}
}

(404) {
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
handle @404 {
respond * "Not found" 404
}
}
}

yourdomain.com {
reverse_proxy web:4200
@ws {
header Connection *Upgrade*
header Upgrade websocket
}
handle /api/* {
# CORS settings
header Access-Control-Allow-Origin *
header Access-Control-Allow-Methods 'GET, POST, PUT, DELETE'
header Access-Control-Allow-Headers 'Content-Type, Authorization'

# Proxy settings, strip /api prefix before proxying
reverse_proxy api:3000
}

reverse_proxy @ws ws:3002
reverse_proxy /widget widget:4500
}
25 replies
NNovu
Created by k0zn4n3j4 on 1/10/2024 in #💬│support
socket.io endpoint on reverse proxy?
I just migrated my setup to a new server and set it up with Caddy, using relative paths as well and it is working fine. Let me know if you want to match configs
25 replies
NNovu
Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
I think the docs is fine as is, it's the tagged images that should be checked. I think the FCM docs can be expanded to include the relevance of the type property and how it can be used to avoid duplicate notifications, also the notificationClick handler will improve the docs as well.
80 replies
NNovu
Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
No description
80 replies
NNovu
Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
will test and feedback
80 replies
NNovu
Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
yup, updated contents in this one
80 replies
NNovu
Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
ok
80 replies
NNovu
Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
unless there is one after 0.22.0
80 replies
NNovu
Created by harrisyn on 1/18/2024 in #💬│support
Firebase Push Notification
I am using the latest image
80 replies