I'm building a web app with Yesod and am currently passing in secrets such as API keys via environment variables (as per The Twelve-Factor App) to avoid storing these values in version-controlled configuration files. For example, I run my app in dev…
Currently, I'm thinking about usage of letsencrypt https certificates with yesod application, which will be deployed to the actual server using keter.
My question is: What is the best way to do so?
There are no explicit description about this in the…
I've suddenly started encountering the following errors when attempting to use gmail authentication (Yesod.Auth.GoogleEmail2) in my Yesod Application:
FailedConnectionException2 "www.googleapis.com" 443 True sendBuf: resource vanished (Broken…
I have a server and want to deploy my Yesod applications without installing GHC and Cabal. I am not sure if is possible: a Teacher told me that I must first compile Keter in my machine and, after that, put keter executable on the server, though I am…
I'm trying to deploy a Yesod app to an Ubuntu server using Keter. So far this is what I've done:
Install Keter on the server using the provided setup script
wget -O - https://raw.github.com/snoyberg/keter/master/setup-keter.sh | bash
Run yesod…
Here is my fork of Keter with *.nix files generated via cabal2nix: https://github.com/bsima/keter/tree/nix
I did nix-build shell.nix on my dev machine (NixOS 17.09), then used nix-copy-closure to put it on my VPS on Digital Ocean (also NixOS 17.09,…
I have a Yesod site and have created a handler for handling downloads and enforcing constraints. My Yesod project directory has a subdirectory called downloads, and it contains files I want the user to be able to download if they are logged in. …
OS: Ubuntu 20.04 LTS
I am attempting to deploy a web app using Keter, the app depends upon several environment variables which I seem to be struggling to make available.
For reference I've been using this resource from the Ubuntu community to try…
Problem: CSS was being applied to the site but after switching to reverse proxy and adding a security cert while changing nothing else, the CSS no longer loads.
Details: Initially the website was using keter only with no security cert or reverse…
I have VPS running Debian 9 with Keter serving single web application.
I've generated certificates using Create certificate button in Origin Certificates section of Crypto tab.
Then I've edited my keter.yaml:
stanzas:
- type: webapp
exec:…
I am trying to install the keter executable to the implicit "global-project" of stack. I use stack install keter from the directory to do this. When I do so, I get the error.
In the dependencies for keter-1.4.3.2:
http-reverse-proxy-0.5.0.1…
I have couple yesod apps deployed using keter with PostgreSQL. The thing I really like about them is the automatic DB migration that happens on deployment.
But, now I have faced a small problem: I set up DB replica on another virtual machine; the…
I am preparing to deploy a yesod webapp using keter.
The only instructions to install keter is these: https://www.stackage.org/nightly-2017-07-19/package/keter-1.4.3.2. Which have this suggestion:
This approach is not recommended for a production…
I have a project that contains several packages that are specified in one stack.yaml file. One of these packages is the yesod application. It depends on the other packages. stack build handles dependencies nicely, but how do I build the keter bundle…
I installed Keter and compiled my project using stack exec -- yesod keter, and then I copied the compiled keter file to /opt/keter/incoming. this is my config/keter.yml file:
exec: ../dist/build/MyProject/MyProject
host: localhost
and this is my…