diff --git a/conf/.env b/conf/.env index 9ee654f..99ee5a6 100644 --- a/conf/.env +++ b/conf/.env @@ -10,11 +10,11 @@ # Generate a hex-encoded 32-byte random key. You should use `openssl rand -hex 32` # in your terminal to generate a random value. -SECRET_KEY=generate_a_new_key +SECRET_KEY=53b654d84c820573dc19e86d09c4c47d44c17b32055154a0cbc75efc5aee00fb # Generate a unique random key. The format is not important but you could still use # `openssl rand -hex 32` in your terminal to produce this. -UTILS_SECRET=generate_a_new_key +UTILS_SECRET=7cbd5fbf647a8f85f06560c6dad74d2eee21fd4e1889f91dabb7dd873c7428be # For production point these at your databases, in development the default # should work out of the box. @@ -57,8 +57,8 @@ AWS_S3_ACL=private # # When configuring the Client ID, add a redirect URL under "OAuth & Permissions": # https:///auth/slack.callback -SLACK_KEY=get_a_key_from_slack -SLACK_SECRET=get_the_secret_of_above_key +SLACK_KEY=__SLACKKEY__ +SLACK_SECRET=__SLACKSECRET__ # To configure Google auth, you'll need to create an OAuth Client ID at # => https://console.cloud.google.com/apis/credentials diff --git a/doc/NOTES.md b/doc/NOTES.md new file mode 100644 index 0000000..63bd012 --- /dev/null +++ b/doc/NOTES.md @@ -0,0 +1,3 @@ +# To start server + +sudo -u outline env PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn start \ No newline at end of file diff --git a/manifest.json b/manifest.json index bd0fe78..1643bbe 100644 --- a/manifest.json +++ b/manifest.json @@ -54,6 +54,14 @@ }, "choices": ["fr", "en"], "default": "fr" + }, + { + "name": "slackkey", + "type": "string" + }, + { + "name": "slacksecret", + "type": "string" } ] } diff --git a/scripts/install b/scripts/install index afec671..6ab813b 100755 --- a/scripts/install +++ b/scripts/install @@ -28,6 +28,8 @@ domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH is_public=$YNH_APP_ARG_IS_PUBLIC language=$YNH_APP_ARG_LANGUAGE +slackkey=$YNH_APP_ARG_SLACKKEY +slacksecret=$YNH_APP_ARG_SLACKSECRET ### If it's a multi-instance app, meaning it can be installed several times independently ### The id of the app as stated in the manifest is available as $YNH_APP_ID