Add the initial kosmos-akkounts cookbook to deploy akkounts-api

Includes a recipe to set up nginx as a reverse proxy with a TLS
certificate for api.accounts.kosmos.org

Closes #18
Closes #20
This commit is contained in:
Greg Karékinian
2019-10-17 14:56:48 +02:00
parent 1b2edb770e
commit 185982ff9f
13 changed files with 411 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
[Unit]
Description=Start nodejs app
[Service]
ExecStart=<%= @entry %>
WorkingDirectory=<%= @app_dir %>
User=<%= @user %>
Group=<%= @group %>
<% if @environment -%>
Environment=<% @environment.each do |key, value| -%>'<%= key %>=<%= value %>' <% end %>
<% end -%>
Restart=always
[Install]
WantedBy=multi-user.target