summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-01Make pub the only publically-writable namespaceBen Sima
2020-04-01Delete old nixpkgs pinBen Sima
2020-04-01Add matrix and riot server configBen Sima
2020-04-01Add basic details for the paid servicesBen Sima
2020-03-31Finally fixed the guardIP thingBen Sima
Turns out the ultimate reason was that I wasn't actually returning out of the handler, I was just setting the HTTP status. Now I'm sure that it works correctly.
2020-03-31Add part of jukebox scriptBen Sima
2020-03-31Finally fix guardIPBen Sima
First problem was that my `extract` function wasn't working. Second problem was that nginx wasn't passing along the headers anyway.
2020-03-31Add tutorial and apidocs to websiteBen Sima
2020-03-31Cleanup index and _ ns handlingBen Sima
So now _ is the special namespace that only I can post to. Unfortunately I think the guardIP function is still broken.
2020-03-31Massively improve the que-websiteBen Sima
curl was throwing an exception if the file got too long, because I was passing the entire file contents in the arguments to curl. I tried using a tmp file but that didn't work for some reason. So I switched to req and that seems to work well. I also made it faster by serving all pages concurrently, and I spruced up the CSS a ton.
2020-03-31Use ./serval to deploy serval production serverBen Sima
The scheme version of this is currently useless anyway.
2020-03-31Use production logging levelBen Sima
2020-03-31Fix guardIP and some other cleanupBen Sima
Apparently guardIP wasn't working because it wasn't matching on the right string, *and* I had typo'ed my IP address. I took this opportunity to also organize the Scotty code a bit better with some comments.
2020-03-31Add :iq ghci commandBen Sima
2020-03-31Add Run.Que.Website serverBen Sima
This is a simple website server that uses que.run itself to host the que webpages. I had to rename Run.Que to Run.Que.Server because nix was complaining about Run.Que being both a derivation and an attrset with Run.Que.Website in it.
2020-03-31Allow dot in quepathBen Sima
2020-03-30Add guarded index route handlersBen Sima
2020-03-30Only allow my IP to POST on /_ routesBen Sima
2020-03-30Add nix service declaration for que.runBen Sima
I'm using serval.simatime.com as a catch-all production app server for now. The 'que.run' domain is pointed at that instance, and the service is just installed as a regular NixOS systemd service. I had to do some troubleshooting because I wasn't getting any DNS names to resolve. I think changing the nameservers fixed it. Don't know why the 127 number was in there. Another issue concerns how to add our packages to the set of nixpkgs in the generated NixOS. I played around with this for a while and landed on using an overlay to put our set of packages under 'pkgs.biz.<name>', and then passing that in to the 'buildOS' function. This isn't really the best solution because it is confusing and rather disconnected. I'm starting to realize that it might be good to separate nix artifacts into "machines" and "programs", but I don't want to do that just yet. I'd like to finish designing my bild program before making any large design decisions or re-organizations.
2020-03-30Handle /ns endpoint with 501Ben Sima
2020-03-30Don't read the body until I need itBen Sima
2020-03-30Rescue lack of poll paramBen Sima
2020-03-30Parse args for --portBen Sima
2020-03-30Rename Com.Simatime.Que to Run.QueBen Sima
Now that I have the domain name que.run! Aw yeah.
2020-03-30Add polling and streaming to QueBen Sima
2020-03-30Add queBen Sima
2020-03-30Rewrite Go to use unagi-chanBen Sima
The performance is reportedly better. The API is simpler. Also with STM channels, I couldn't get multiconsumer to work. I was able to get it to work with unagi. Also I could write 'mult' and 'tap' which bring me back to my Clojure days.
2020-03-30Add 'broadcast' and 'tap'Ben Sima
2020-03-30Add idea about file-based dependenciesBen Sima
More generally, we could extend this to other settings, like 'main-is' and target architecture to compile for and so on. It would be best to define the parameters in Nix first, then later inline them to the code comments after we've worked out the interface.
2020-03-29Bump nixpkgs pinBen Sima
2020-03-28Refactor and remove custom operatorsBen Sima
As much as I like these operators, I have to remove them because they don't work as expected. Haskell doesn't allow you to have unary prefix operators. I can't find a way around this, and it's not that important anyway.
2020-03-28Add onomatopoeitic operatorsBen Sima
It's easier to remember what operators do, and thus easier to write and read condens code, if they follow some symbolic pattern or visually represent the concept to which they map. This is in part inspired by hoon, in part by OCaml's operators. I'm not married to these operators specifically, but I think they are good so far.
2020-03-28Open UDP port for murmurBen Sima
2020-03-28Add murmur serverBen Sima
2020-03-17Add double fmap, switch "say" to Text, and autoformatBen Sima
2020-03-17Warn on all in ghciBen Sima
2020-02-16Split buildHaskellApp into buildGhc and buildGhcjsBen Sima
Two functions makes it simpler to reason about what is being built and when, even if it is a bit more explicit. I also removed the dumb Apex/Aero naming thing because Server/Client is just easier to remember.
2020-02-14Update .gitignoreDavid Johnson
Ignores *~ and dist directories
2020-02-13Add git branch instructions to READMEBen Sima
2020-02-11Add servalBen Sima
2020-02-11Upgrade nixos-mailserverBen Sima
Hopefully this won't break anything...
2020-02-11Add fallthrough to nixpkgsBen Sima
This is convenient for building stuff in our nixpkgs pin.
2020-02-07Update my IPBen Sima
2020-01-30Add clay source, add dontCheck to wai-middleware, clay.David Johnson
2019-11-23Add push-all commandBen Sima
2019-11-23Put outputs in _bild pathBen Sima
2019-11-23Remove undefinedBen Sima
2019-11-23Make all warnings errors in GHCBen Sima
2019-11-23Print the nix log on bild failureBen Sima
2019-11-23Add Com.MusicMeetsComicsBen Sima