Includes a recipe to set up nginx as a reverse proxy with a TLS certificate for api.accounts.kosmos.org Closes #18 Closes #20
		
			
				
	
	
		
			16 lines
		
	
	
		
			317 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			317 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| [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
 |