Deploy akkounts-api behind an nginx reverse proxy with a TLS cert #109

Manually merged
raucao merged 7 commits from feature/18-akkounts-api into master 2019-10-18 12:31:40 +00:00
Owner

The encrypted data bag does not contain the actual secrets for now

I have pointed api.accounts.kosmos.org to barnard

Closes #18

Closes #20

The encrypted data bag does not contain the actual secrets for now I have pointed api.accounts.kosmos.org to barnard Closes #18 Closes #20
Author
Owner

To replace the data bag secrets:

bundle exec knife data bag edit credentials akkounts-api --secret-file .chef/encrypted_data_bag_secret
To replace the data bag secrets: ``` bundle exec knife data bag edit credentials akkounts-api --secret-file .chef/encrypted_data_bag_secret ```
raucao requested changes 2019-10-17 19:32:09 +00:00
@ -104,1 +104,3 @@
"recipe[sockethub::proxy]"
"recipe[sockethub::proxy]",
"recipe[kosmos-akkounts]",
"recipe[kosmos-akkounts::nginx]"
Owner

Is there a reason for the nginx site not being configured with the default recipe?

Is there a reason for the nginx site not being configured with the default recipe?
@ -0,0 +59,4 @@
npm_install do
user deploy_user
production false # typescript is a dev dependency
Owner

TypeScript is a dev dependency, because the app is supposed to be compiled in development, not production.

TypeScript is a dev dependency, because the app is supposed to be compiled in development, not production.
@ -0,0 +62,4 @@
production false # typescript is a dev dependency
end
execute "compile app" do
Owner

Why is it compiling the app here? We talked about it, and I explained that it should be done in npm version, not during deployment. I don't understand what happened since then. Anything wrong with compiling a release and then deploying the compiled release?

Why is it compiling the app here? We talked about it, and I explained that it should be done in `npm version`, not during deployment. I don't understand what happened since then. Anything wrong with compiling a release and then deploying the compiled release?
Owner

App is now compiled to release dir: https://github.com/67P/akkounts-api/pull/6

App is now compiled to release dir: https://github.com/67P/akkounts-api/pull/6
Owner

All working in production now! You can try it out yourself, with Mastodon on https://accounts.kosmos.org/

All working in production now! You can try it out yourself, with Mastodon on https://accounts.kosmos.org/
raucao closed this pull request 2019-10-18 12:31:40 +00:00
raucao deleted branch feature/18-akkounts-api 2019-10-18 12:31:48 +00:00
Sign in to join this conversation.
No description provided.