I have a website build using python3.4 and flask...I have generated my own self-signed certificate and I am currently testing my website through localhost.
Pretty sure it's forever, the catch isn't about how long you use it but rather how much computational power you use. But for a small site, you shouldn't worry about it much. I have a site with max. a couple of thousand views per month and never had to pay a cent.
But what happens when there is a spike of views, e.g. a DOS attack? Would you have to pay then or did you make some precaution that the views would never reach a certain threshold?
GitHub Pages is great, but eventually you come to realize that it's not. Netlify has so much more that GitHub Pages is lacking—plugins, redeploys, stop auto publishing, and a bunch of other useful features.
That's because your certificate is provided by GitHub but your hostname doesn't match... I think you have to either switch to http or provide your own certificate
You can use a custom domain with GitHub Pages and get a valid certificate from Let's Encrypt automatically. You need to ensure you have a CNAME file in your repo and your DNS settings are set up correctly. Check out docs.github.com/en/github/working-...
aws.amazon.com/ AWS gives you a year of free resources. appliku.com/ gives you a free plan to deploy your app on AWS, so you don't have to waste time on DevOps
Top comments (35)
Is it possible to have https for free in heroku?
*.herokuapp.com
has HTTPS by default, but just need to redirect your server for it.Custom domain can have HTTPS, if you either,
I deployed a flask site and all the relative links points to http. I open with https, but the internal links point to http
Have you tried --
I have a website build using python3.4 and flask...I have generated my own self-signed certificate and I am currently testing my website through localhost.
I am using the python ssl module along with this flask extension: github.com/kennethreitz/flask-sslify
…You don't need a real SSL certificate, BTW. Just need to differentiate DEVELOPMENT from PRODUCTION.
You can also adapt this code, as some of the things are Heroku-specific.
help.heroku.com/J2R1S4T8/can-herok...
great list of free resources!
Indeed
Thanks. Great list
You can also use AWS' free tier. Been hosting my site there for free 👍
May I know what product are you using for the free tier. EC2 ? Elastic beanstalk?
Just checked, I'm running an Elastic Beanstalk app itself running an EC2 instance.
Elastic Beanstalk doesn't cost anything. EC2 has 750 hours free per month (which ultimately means you can only run one instance) for 12 months.
Is it for free forever? Or only for a limited time, e.g. 30 day?
Pretty sure it's forever, the catch isn't about how long you use it but rather how much computational power you use. But for a small site, you shouldn't worry about it much. I have a site with max. a couple of thousand views per month and never had to pay a cent.
But what happens when there is a spike of views, e.g. a DOS attack? Would you have to pay then or did you make some precaution that the views would never reach a certain threshold?
It seems like AWS has its own DDOS protection service
aws.amazon.com/shield/?whats-new-c...
I personally haven't undertaken any measures regarding denial of service attacks, perhaps if my site reaches a certain size.
AWS can be quite confusing, but it's the biggest hosting provider at the moment (I believe), I think it's worth looking it up and researching 👍
Apologies, I need to correct myself!
I made a little bit of research, it's free for 12 months, so not indefenitely.
However, once these 12 months are done, you only pay what you use.
Thanks for clarifying
GitHub Pages ftw
GitHub Pages is great, but eventually you come to realize that it's not. Netlify has so much more that GitHub Pages is lacking—plugins, redeploys, stop auto publishing, and a bunch of other useful features.
I'm hosting my website for free on github pages, too. But it doesn't support https. Therefore most people would see an warning page.
Not only does it support https, it forces it... Have you messed up the configuration?
Ah, my bad. It is using https. But the certificate is not valid:
pandaquests.de
That's because your certificate is provided by GitHub but your hostname doesn't match... I think you have to either switch to http or provide your own certificate
Ok. I'll have a look how I can provide a certificate.
You can use a custom domain with GitHub Pages and get a valid certificate from Let's Encrypt automatically. You need to ensure you have a CNAME file in your repo and your DNS settings are set up correctly. Check out docs.github.com/en/github/working-...
Hmm... I think I did that. But it still says my certificate is invalid
Netlify, Vercel, Heroku, Github Pages
I'm also using ghPages. Will look into the others. Thanks
aws.amazon.com/ AWS gives you a year of free resources.
appliku.com/ gives you a free plan to deploy your app on AWS, so you don't have to waste time on DevOps
Full disclosure – I am maker of Appliku.
Netlify
Free static site hosting services
For my blog (mzaini30.js.org)
Hosting: Github Pages (free)
Domain: JS.org (free)
For web app demo
Hosting frontend: Github Pages (Vue, free)
Hosting backend: nasihosting.com (PHP, MySQL, free)
fast.io for static sites
Firebase Hosting, Vercel etc
Thanks, I'll have a look