Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

catapult-project/reflector-server

Repository files navigation

Reflector Reference Server

Instructions:

gcloud init
  • Create a config.json file to override config defaults (i.e. App Engine project ID, Cloud Storage bucket, etc).
  • Note that the Cloud storage bucket has to be publically readable (Add read permissions for the 'allUsers' user in https://console.cloud.google.com/storage).
  • Install OpenSSL
  • Generate a self-signed SSL certificate for localhost testing (leave prompts at defaults):
mkdir sslcert
openssl genrsa -des3 -passout pass:x -out sslcert/server.pass.key 2048
openssl rsa -passin pass:x -in sslcert/server.pass.key -out sslcert/server.key
rm sslcert/server.pass.key
openssl req -new -key sslcert/server.key -out sslcert/server.csr
openssl x509 -req -sha256 -days 365 -in sslcert/server.csr -signkey sslcert/server.key -out sslcert/server.crt
  • Install dependencies:
npm install
npm start
  • Run Chrome:
./chrome --allow-insecure-localhost \
  --enable-reflector-for-recipient=https://localhost:8080/reflector/upload \
  https://localhost:8080/reflector/test
  • For testing only, to allow insecure content in iframe, use flag
--allow-running-insecure-content

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published