-
Notifications
You must be signed in to change notification settings - Fork 7
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
New features to demo ota-community-edition #7
base: v2
Are you sure you want to change the base?
Conversation
d80ep08th
commented
Sep 9, 2022
- configured https
- new domain uptanedemo.org
- Gateway to services via dgw.uptanedemo.org
- configured https for all services: director, deviceregistry etc. - access to services via dgw.uptanedemo.org - modified bash scripts to adapt to new configuration - configured docker compose file
- nginx container to serve landing page - added configuration for server in ota-ce dir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't put all this demo-server-specific stuff in here; people still need to be able to run it themselves, locally, the way you did when you were starting the project. We talked about this weeks ago: you can do it with templating, or environment variables, or whatever. It doesn't matter the method, but you can't break the self-hosted community edition/ota-lith just to make the demo server work.
server { | ||
error_log /var/log/nginx/error.log info; | ||
listen 7443 ssl; | ||
server_name uptanedemo.org; | ||
ssl_certificate /etc/ssl/gateway/server.chain.pem; | ||
ssl_certificate_key /etc/ssl/gateway/server.key; | ||
ssl_verify_client on; | ||
ssl_verify_depth 10; | ||
ssl_client_certificate /etc/ssl/gateway/ca.crt; | ||
|
||
if ($ssl_client_s_dn ~ "CN=(.*)$") { | ||
set $deviceUuid $1; | ||
} | ||
if ($ssl_client_s_dn !~ "CN=(.*)$") { | ||
set $deviceUuid $ssl_client_s_dn; | ||
} | ||
set $deviceNamespace "default"; | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unique to the demo server--it doesn't belong in this repo.
@@ -18,7 +18,7 @@ openssl pkcs8 -topk8 -nocrypt -in "${device_dir}/pkey.ec.pem" -out "${device_dir | |||
openssl req -new -key "${device_dir}/pkey.pem" \ | |||
-config <(sed "s/\$ENV::DEVICE_UUID/${DEVICE_UUID}/g" "${CWD}/certs/client.cnf") \ | |||
-out "${device_dir}/${device_id}.csr" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's generally considered polite to put whitespace/formatting changes in their own PR.