Where do you host your web services?

Heroku is expensive and Koyeb doesn’t support apex domains (which means I can’t have NIP05)

I’m looking at Cloudflare now, but I’m hoping someone with more experience can give some advice

nostr:nprofile1qqs99d9qw67th0wr5xh05de4s9k0wjvnkxudkgptq8yg83vtulad30gxyk5sf nostr:nprofile1qqs8lft0t45k92c78n2zfe6ccvqzhpn977cd3h8wnl579zxhw5dvr9qf3fjwq nostr:nprofile1qqs04xzt6ldm9qhs0ctw0t58kf4z57umjzmjg6jywu0seadwtqqc75s8fsrrg nostr:nprofile1qqsyvrp9u6p0mfur9dfdru3d853tx9mdjuhkphxuxgfwmryja7zsvhqelpt5w

#asknostr #programming

Reply to this note

Please Login to reply.

Discussion

Heroku or digitial ocean.

Thank you friend 🙏

Will look into digital ocean

Maybe I’m doing something wrong with Heroku or maybe my programming skills aren’t there yet, but it costs $50 for 1GB of RAM and some of my usage occasionally goes over the 512MB

It also bothers me that there’s no dark mode, but that’s a small thing

If you consider VPS, you can check our plans https://skhron.eu/services

We accept Bitcoin Lightning Network using our own Lightning node

Please avoid CloudFlare. They're destroying the internet, and I won't be the only person forced to avoid using your service because of their racist policies of just blocking anyone from particular parts of the world, and their absolute disregard for people's privacy for blocking anyone that uses a popular VPN service to get around it.

I just click back whenever I see a CloudFlare verification. They rarely let me through anyway, and are fucking scum even if they do.

I use Vercel, super easy and convenient

I know that github pages is limited, but it supports apex domains, so it works nicely with NIP-05

I'm thinking about1984 hosting Iceland

https://1984.hosting/

or Njalla https://njal.la/

Hetzner

Hetzner was another recommendation that I came across because it has great price to performance, but it needs my address and payment information just to create an account?

yes because that is how invoicing works

I love how sassy you are

That’s why I follow you

Because every note carries with it the tone of “you’re an idiot”

Never change 😂

Very interesting! Thanks for sending this over!

I’m trying it now, but having some issues

Who built it so I can follow them?

How do you manage secrets?

I previously relied on environmental variables, but I'm learning there are limitations with that practice

a secrets.json/yaml/file format here

and listed in .gitignore

problem solved

anything else is unnecessarily complicated unless you have more than 2 servers and frequently changing secrets

i use an allow list pattern on my gitignores, this way only stuff i mean to be in there is caught, everything else gets ignored

https://github.com/mleku/realy/blob/dev/.gitignore

been using this since i had a colleague include a node_modules in our fiat mine project a year ago

this list will pretty much keep anything useful, just don't use .txt for secret files lol

Wouldn’t the owner of the hardware have root access to the secrets.json file?

I may be misunderstanding

How is that better than environmental variables?

More flexibility

Environment variables. Specify them in the systemd service file. What is the problem with them?

I don't have many secrets to be honest.

Wouldn’t the owner of the hardware have root access to them?

Definitely. If you want absolute secrecy you have to run your own (or trust Intel SGX but that's too complicated).

You can also precompile secrets inside the binary you deploy, the owner of the hardware still has access but it makes their lives harder. Or you can load the secrets from somewhere else on startup and keep them in memory, again they can still access but it's harder.

This is actually so epic, thanks again for sending this over!

nostr:nprofile1qqsx8lnrrrw9skpulctgzruxm5y7rzlaw64tcf9qpqww9pt0xvzsfmgrefsyl great job on this! I’m enjoying using it so far

Is it open source?

Also, would you consider doing payments per hour like traditional services instead of a single monthly payment?

Maybe there’s a better way, but in mind I see it as the user pays a deposit to a wallet for the service and can extend as needed (which you have currently), but the amount paid is deducted every hour so if the server is down or suspended then the payment is paused

I think I’d be more inclined to deposit more money upfront knowing it’s depleted based on usage (instead of monthly)

Does that make sense?

Another thought:

This would be crazy as a DVM

Minimal inputs: server OS, ssh key encrypted

DVM replies with lightning invoice

User pays invoice

DVM replies with encrypted IP, DNS, etc

Then AI agents can spin up servers without API keys 🤯

My impression is that the traditional way is charging per month, not per hour.

t Y thread*/*