Skip to content

nginx example in doc? #3361

Answered by r3k2
r3k2 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, I got it working, and yes in production, is why I wanted to have a good nginx config example, because I did not wanted to run trunk but to have nginx run it and now is working, and the only reverse proxy /api I have is to talk with my backend (not related to yew) what is important is that nginx is the one serving the wasm to the client browser with out having to run yew on its own dev http server.
here is the example we can use for others that had my issue so they do not spend like me 5 days hearing people telling me that I should use nginx as a reverse proxy for yew(wrong because yew runs on the browser)

server {
    listen 443 ssl; # IPv4
    listen [::]:443 ssl; # IPv6
    serve…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hamza1311
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #3360 on July 26, 2023 14:49.