I use middlemanapp.com and deploy to s3 with cloudfront and then use lambda/apigateway for the 2 backend operations I need.
I would love to learn more about the lambda/apigateway part, I too need two backend operations on an otherwise static site, mailchimp signup and contact form submission. I am new to AWS, but I am pretty sure lambda could handle this, do you have suggestions on where I could learn more about setting something like this up?
Ask HN: Most Sites Don't Use a CMS Like Wordpress – What Non-CMS Do You Use?
61–70 of 74 posts
Re: Ask HN: Most Sites Don't Use a CMS Like Wordpress – What Non-CMS Do You Use?
#62A single file named `index.php` that loads a bunch of text files and spits out what looks vaguely like a blog. It's a total mess. Business logic and HTML snippets scattered everywhere. Layers of caching to make the whole thing load in less than 0.03 seconds on cheap shared hosting. I'm sure I do a much better job for paying clients, but somehow never get around to fixing the decade-old garbage that runs my own site.…
Could still be if file_exist then read file despite where or what file , it's the 2nd most common security hole I have seen behind sql injection.
Re: Ask HN: Most Sites Don't Use a CMS Like Wordpress – What Non-CMS Do You Use?
#63Re: Ask HN: Most Sites Don't Use a CMS Like Wordpress – What Non-CMS Do You Use?
#64For my personal website, I wrote a backend in Haskell: https://github.com/myfreeweb/sweetroll after trying a lot of static generators, writing Dropbox-backed blog engines, etc. It uses the Micropub protocol for posting/editing/deleting (I also made a frontend editor app for Micropub: https://github.com/myfreeweb/micro-panel ), Webmention for talking to other websites, Git+JSON to store content. I don't like the PHP/M…
Firstly, sweetroll looks amazingly cool and being able to add javascript plugins seems like a great idea. Second, have you looked at clckwrks[0]? It aims to specifically dethrone wordpress by making plugins that are provably safe. I think this is a viable way to attack wordpresses stronghold, though I think being able to do things like write plugins based in javascript or other popular languages when an existing prov…
Re: Ask HN: Most Sites Don't Use a CMS Like Wordpress – What Non-CMS Do You Use?
#65Earlier quoted context omitted.
The basic problem of security: They just need to find one attack path. You need to defend all, even the ones you don't know.
Any attack against nanoblogger would be an "on the other side of this airtight hatchway" attack https://blogs.msdn.microsoft.com/oldnewthing/20100114-00/?p=... Nanoblogger is a bash script in my home directory. To add an entry, I ssh into the web server, give it the text of the post, and it generates a bunch of HTML and writes it to /srv. It is only run to create a new post. It doesn't listen on a port, or talk to th…
You just don't know the weird ways things can be exploited. And if an exploit is discovered you'll be just as happy as everybody else if you don't need to implement a fix yourself but can rely on others implementing, testing and reviewing fixes that they provide to you as an update.
Re: Ask HN: Most Sites Don't Use a CMS Like Wordpress – What Non-CMS Do You Use?
#66Re: Ask HN: Most Sites Don't Use a CMS Like Wordpress – What Non-CMS Do You Use?
#67Las time I used grav for something that does not have to be client friendly. It still felt a bit immature though. (the pretty flat-file markdown quickly gets gobbled up in the YAML headers and than they can only be edited through the admin interface)
Lately the admin plugin has an Advanced view that exposes the full yaml file in a form...
Both next to impossible with escaped markdown.
I guess markdown keeps the syntax clean for a WYSIWYG editor too, but the real benefit always was that you could write it in plain text with any editor you want.
Re: Ask HN: Most Sites Don't Use a CMS Like Wordpress – What Non-CMS Do You Use?
#68Re: Ask HN: Most Sites Don't Use a CMS Like Wordpress – What Non-CMS Do You Use?
#69Earlier quoted context omitted.
Any attack against nanoblogger would be an "on the other side of this airtight hatchway" attack https://blogs.msdn.microsoft.com/oldnewthing/20100114-00/?p=... Nanoblogger is a bash script in my home directory. To add an entry, I ssh into the web server, give it the text of the post, and it generates a bunch of HTML and writes it to /srv. It is only run to create a new post. It doesn't listen on a port, or talk to th…
Well, because we have never seen any exploits with bash (Shellshock anybody?) or ssh (Heartbleed rings a bell?). You just don't know the weird ways things can be exploited. And if an exploit is discovered you'll be just as happy as everybody else if you don't need to implement a fix yourself but can rely on others implementing, testing and reviewing fixes that they provide to you as an update.
Re: Ask HN: Most Sites Don't Use a CMS Like Wordpress – What Non-CMS Do You Use?
#70Earlier quoted context omitted.
Any attack against nanoblogger would be an "on the other side of this airtight hatchway" attack https://blogs.msdn.microsoft.com/oldnewthing/20100114-00/?p=... Nanoblogger is a bash script in my home directory. To add an entry, I ssh into the web server, give it the text of the post, and it generates a bunch of HTML and writes it to /srv. It is only run to create a new post. It doesn't listen on a port, or talk to th…
Well, because we have never seen any exploits with bash (Shellshock anybody?) or ssh (Heartbleed rings a bell?). You just don't know the weird ways things can be exploited. And if an exploit is discovered you'll be just as happy as everybody else if you don't need to implement a fix yourself but can rely on others implementing, testing and reviewing fixes that they provide to you as an update.
Sure we have, and they have nothing to do with the static site generator. You're talking about compromising the web server in general. Totally unrelated.
And you don't even need a web server with an SSG. I use a one locally and upload to S3. Maybe I "just don't know the weird ways things can be exploited", but I simply can't think of any conceivable angles on that.
References to mysterious unknowable hacking superpowers aren't really useful. Paranoia is to be encouraged in security, but sometimes it really is just plain secure!