This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ghcr.io/zhaofengli/attic:latest | |
COPY ./attic.toml /attic/server.toml | |
RUN mkdir -p /cache | |
RUN mkdir -p /data | |
EXPOSE 8080 | |
CMD ["-f", "/attic/server.toml", "--mode", "monolithic"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_log /var/log/nginx/error.log debug; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
log_format proxy_log | |
'[$time_local] $remote_addr - $remote_user "$host$request_uri" ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import GHC.Conc (numCapabilities) | |
import Control.Parallel.Strategies | |
import qualified Data.Vector as V | |
import qualified Data.Vector.Generic as G | |
autoParVector :: (G.Vector v a, NFData (v a), NFData a) => Strategy (v a) | |
autoParVector = autoChunkStrategy id |