29 lines
489 B
Bash
29 lines
489 B
Bash
|
|
#!/bin/sh
|
||
|
|
set -ex
|
||
|
|
|
||
|
|
here=$(dirname $(realpath "$0"))
|
||
|
|
|
||
|
|
git submodule update --init --recursive
|
||
|
|
mkdir -p pfx/logs
|
||
|
|
|
||
|
|
cd pebble
|
||
|
|
go build ./cmd/pebble
|
||
|
|
cd $here
|
||
|
|
|
||
|
|
if ! [ -f nginx/objs/nginx ]; then
|
||
|
|
cd nginx
|
||
|
|
auto/configure --with-compat --with-http_ssl_module \
|
||
|
|
--add-module=$here/nginx-acme --prefix=$here/pfx
|
||
|
|
make -j8
|
||
|
|
cd $here
|
||
|
|
fi
|
||
|
|
|
||
|
|
PEBBLE_VA_ALWAYS_VALID=1 pebble/pebble -config pebble-config.json &
|
||
|
|
sleep 2
|
||
|
|
|
||
|
|
nginx/objs/nginx -c $here/nginx.conf &
|
||
|
|
sleep 2
|
||
|
|
|
||
|
|
# todo xdg open url
|
||
|
|
sleep infinity
|