-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config.yaml in source code is missing #3
Comments
I haven't yet written the documentation for the project yet, part of which would be the example server config file. The server config schema can be found here in the source code: https://github.com/greenstatic/openspa/blob/dev/internal/server_config.go Here is an example server config.yaml that I used for testing: server:
ip: "0.0.0.0"
port: 22211
requestHandlers: 100
http:
enable: true
ip: "0.0.0.0"
port: 22212
firewall:
backend: "iptables"
iptables:
chain: "OPENSPA-ALLOW"
authorization:
backend: "simple"
simple:
# Valid units are "s", "m", "h"; seconds, minutes and hours respectively
duration: "30s"
crypto:
cipherSuitePriority:
- "CipherSuite_RSA_SHA256_AES256CBC"
rsa:
client:
publicKeyLookupDir: "/home/ubuntu/openspa/authorized_keys"
server:
privateKeyPath: "/home/ubuntu/openspa/server_private.key"
publicKeyPath: "/home/ubuntu/openspa/server_public.key" Note:
|
it works as mentioned ! |
V1 and V2 implementations of the client and server are completely different. They are not backwards compatible. In v1 the protocol schema is static while in v2 the protocol schema is based around TLV. Essentially v2 is a complete re-write. I see you have updated your comment now :) |
Thanks a lot for your patience : ) |
zenith@LAPTOP-ZENITH:~/openspa/artifacts$ ./openspa_linux_amd64 server start
3:28PM FTL Failed to read config file error="open config.yaml: no such file or directory"
openspa server run err because of a lack of config.yaml
ps: I would appreciate it very much if README.md could be more specific : )
The text was updated successfully, but these errors were encountered: