add debug server
This commit is contained in:
parent
25f1171b3f
commit
72c0466301
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
binary/
|
||||
.bin/
|
||||
.certificates/
|
||||
server.*
|
||||
|
15
gen-certs.sh
Executable file
15
gen-certs.sh
Executable 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
|
@ -1 +0,0 @@
|
||||
./binary/kineto -b 127.0.0.1:8080 -e /assets/styles.css gemini://iiiypuk.me
|
4
proxy-kineto.sh
Executable file
4
proxy-kineto.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
./bin/kineto -b 127.0.0.1:8080 \
|
||||
-e /assets/styles.css \
|
||||
gemini://iiiypuk.me
|
@ -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
6
server-shavit.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# using for debug in OpenBSD
|
||||
|
||||
./.bin/shavit \
|
||||
-config ./shavit-config.toml
|
3
shavit-config.toml
Normal file
3
shavit-config.toml
Normal file
@ -0,0 +1,3 @@
|
||||
source = "public"
|
||||
tls_certificate = "server.crt"
|
||||
tls_key = "server.key"
|
Loading…
Reference in New Issue
Block a user