add debug server

This commit is contained in:
Alexander Popov 2022-01-14 00:48:56 +03:00
parent 25f1171b3f
commit 72c0466301
8 changed files with 35 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
binary/
.bin/
.certificates/
server.*

15
gen-certs.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
# Generate certs & key for Shavit server
# remove old files
rm server.{key,crt}
# generate new cert & key
openssl req -new -newkey rsa:4096 -x509 -sha256 \
-days 1 -nodes \
-out server.crt -keyout server.key \
-subj '/CN=localhost'
# setting true rights
chmod 400 server.key

View File

@ -1 +0,0 @@
./binary/kineto -b 127.0.0.1:8080 -e /assets/styles.css gemini://iiiypuk.me

4
proxy-kineto.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
./bin/kineto -b 127.0.0.1:8080 \
-e /assets/styles.css \
gemini://iiiypuk.me

View File

@ -1,4 +1,8 @@
./binary/agate.x86_64-unknown-linux-gnu \
#!/bin/sh
# using for production
./.bin/agate.x86_64-unknown-linux-gnu \
--content ./public/ \
--addr [::]:1965 \
--addr 0.0.0.0:1965 \

6
server-shavit.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# using for debug in OpenBSD
./.bin/shavit \
-config ./shavit-config.toml

3
shavit-config.toml Normal file
View File

@ -0,0 +1,3 @@
source = "public"
tls_certificate = "server.crt"
tls_key = "server.key"