Initial RPS CUDA implementation
This commit is contained in:
commit
8d583036d0
33 changed files with 2968 additions and 0 deletions
12
scripts/start-server.sh
Normal file
12
scripts/start-server.sh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
# Run in the source directory on infra-gpu.
|
||||
set -eu
|
||||
umask 077
|
||||
certdir="${XDG_CONFIG_HOME:-$HOME/.config}/rps-cuda"
|
||||
mkdir -p "$certdir"
|
||||
if [ ! -e "$certdir/server.key" ] && [ ! -e "$certdir/server.crt" ]; then
|
||||
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 -nodes -days 365 -subj /CN=infra-gpu \
|
||||
-addext subjectAltName=DNS:infra-gpu -addext extendedKeyUsage=serverAuth \
|
||||
-keyout "$certdir/server.key" -out "$certdir/server.crt"
|
||||
fi
|
||||
exec ./build/rps-server --listen 127.0.0.1:7443 --tls-key "$certdir/server.key" --tls-cert "$certdir/server.crt"
|
||||
Loading…
Add table
Add a link
Reference in a new issue