PGZJ736CG2E4HXIRYTZTGOMJRX2CHPIFG6H45PPO57EONOWJJ74QC
4U7F3CPIDTK6JSEDMNMHVKSR7HOQDLZQD2PPVMDLHO5SFSIMUXZAC
DLZRD7VBR2KY2D4CLOJDHENA47AJ527TFOCNC6EZJLM36ENPX5RQC
ADMKQQGCGVSHHIMVQ4XFRDCG544SBJCYALSKZV45CQQBZ4ACUH2AC
NVOCQVASZWTKQJG7GPH7KHKZZR7NUG4WLV5YY4KAIRPCJRWCZPIAC
EPOYLP7OK4BX7JYT7JE3GUVL2QVB5APKD5HZRXBA5JQ6UGU6P3ZAC
QO4NFWIYHF45PF7BA4IYGVZZ7CVZDHIV2427MQ6NXWHLIGBHBQCAC
OBFPJS2GHO2PEHBHGEHKIUOUAFIQHPIZXEVD2YIE3ZIE2PVMH5VAC
PBD7LZYQHXAA3KLH2ZUX5GW4UFML6BQ32KXZF4KZ6OYFASUYFJ5QC
IZEVQF627FA7VV25KJAWYWGGC35LZUUBBQRPN5ZAINTQLPEDRTEAC
used for encryption of cookies and so forth:
mkdir local
cd local
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes
cd <project_root>
echo 'sslCert = "local/cert.pem"' > aftok.cfg
echo 'siteKey = "local/key.pem"' >> aftok.cfg
If you want to run on a port other than 8000, you can set 'port = 12345' in that
aftok.cfg file.
Next, we'll want to run the server in order to autogenerate the files that need
to be edited to configure postgres:
cabal run aftok-server
used for encryption of cookies. We're not currently taking advantage of this,
since there's no browser-based UI, but without it the server will fail to start.
db = "db/aftok-test.db"
port = 8080
port = 8000
sslCert = "conf/cert.pem"
siteKey = "conf/key.pem"
db {
host = "localhost"
port = 5432
user = "postgres"
pass = ""
db = "testdb"
# Nmuber of distinct connection pools to maintain. The smallest acceptable
# value is 1.
numStripes = 1
# Number of seconds an unused resource is kept open. The smallest acceptable
# value is 0.5 seconds.
idleTime = 5
# Maximum number of resources to keep open per stripe. The smallest
# acceptable value is 1.
maxResourcesPerStripe = 20
}