This file contains hidden or 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
| ARG WEB_TAG=yourrepo/web:latest | |
| # front assets | |
| # we have to do this "from" as a workaround because --from does not support build args | |
| FROM ${WEB_TAG} AS web_build | |
| # generate-env image | |
| FROM fabienjuif/generate-env:latest AS generate_env | |
| FROM nginx:1.29.2 |
This file contains hidden or 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
| package batcher | |
| import ( | |
| "context" | |
| "errors" | |
| "log/slog" | |
| "sync" | |
| "sync/atomic" | |
| "time" | |
| ) |
This file contains hidden or 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
| netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=172.26.17.154 | |
| netsh interface portproxy reset all |
This file contains hidden or 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
| const crypto = require('crypto') | |
| const toMD5 = object => crypto.createHash('md5').update(JSON.stringify(object)).digest('hex') | |
| module.exports = ({ | |
| timeout = (/* 1 h */ 1 * 60 * 60 * 1000), | |
| maxEntries = 100, | |
| name = 'cache', | |
| log = console.log, | |
| } = {}) => { |
This file contains hidden or 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
| package gziphandler | |
| import ( | |
| "compress/gzip" | |
| "log" | |
| "net/http" | |
| "strings" | |
| "sync" | |
| ) |