Killshot
Killshot
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
Not yet. My api endpoints works as expected in local environment. But not in production with cloudflare and caddy.
43 replies
WWasp-lang
Created by khb on 10/25/2024 in #đŸ™‹questions
PDF Creation & Prevoew
@khb
11 replies
WWasp-lang
Created by khb on 10/25/2024 in #đŸ™‹questions
PDF Creation & Prevoew
Have you tried various API services which generate pdf file from inputs? i remember seeing one which converted vanilla html to pdf. don't remember the name. maybe that might help?
11 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
will keep the thread updated.
43 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
Sure let me do that.
43 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
yeah nothing is shown on mysite.com nor api.mysite.com
43 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
yeah log command shows it's active and no issues shown
43 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
is it mandatory to link to origin certificates for cloudflare?
43 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
yeah definitely, also got it to partially work with nginx but then got tired of the few cors issue i was getitng.
43 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
{
# Use Cloudflare DNS challenge for ACME
acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}

mysite.com, www.mysite.com {
root * /killshot/webdevelopment/mysite/client
encode gzip
try_files {path} /index.html
file_server
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
}

api.mysite.com {
reverse_proxy localhost:3001
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
}

bot.mysite.com {
reverse_proxy localhost:3000
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
}
{
# Use Cloudflare DNS challenge for ACME
acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}

mysite.com, www.mysite.com {
root * /killshot/webdevelopment/mysite/client
encode gzip
try_files {path} /index.html
file_server
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
}

api.mysite.com {
reverse_proxy localhost:3001
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
}

bot.mysite.com {
reverse_proxy localhost:3000
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
}
43 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
Hey i did migrate to caddy, but can't get it to work. you mind taking a look?
43 replies
WWasp-lang
Created by linus on 10/14/2024 in #đŸ™‹questions
CORS issue
yeah inspite of doing origins allow in middleware files, i also have to do it in nginx, And then was able to solve it.
16 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
Thinking of going to caddy more and more
43 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
You're gonna like this, It was the referer check in the Nginx configuration, had to setup up properly to make api endpoints secure.
43 replies
WWasp-lang
Created by NEROX on 10/16/2024 in #đŸ™‹questions
Doing SEO with Wasp
Absolutely loving your efforts for SEO, i am near to project completion and gonna need to do as much SEO as i can for my project. Your inputs will help i am sure.
37 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
@martinsos Hey, This worked as expected in the local environment, but it's giving cors error after deployment. anything off the top of your head why it could be happening?
43 replies
WWasp-lang
Created by linus on 10/14/2024 in #đŸ™‹questions
CORS issue
any update?
16 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
Appreciate it boss, I guess a disclaimer of some kind in our own opensaas docs would have solved it for me in seconds. Not much just a description of how one would need custom API endpoints and then linking them to this https://wasp-lang.dev/docs/advanced/apis#using-the-api-from-the-client wasp generic docs regarding calling api from client side. I did check this out https://docs.opensaas.sh/guides/authorization/#server-side-authorization but it didn't solve it completely.
43 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
I did use search feature and might have even went through this without realizing it. My bad @martinsos
43 replies
WWasp-lang
Created by Killshot on 10/19/2024 in #đŸ™‹questions
Even after setting auth:true in api end point in main.wasp api end point is not secure.
Ohh that solves it and even makes sense i guess. I was doing it directly via axios
43 replies