WIP Migrate Gitea proxy to openresty
TODO: Make nginx_ssh stream resource work with openresty cookbook
This commit is contained in:
18
site-cookbooks/kosmos_gitea/recipes/nginx_ssh.rb
Normal file
18
site-cookbooks/kosmos_gitea/recipes/nginx_ssh.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
#
|
||||
# Cookbook:: kosmos_gitea
|
||||
# Recipe:: nginx_ssh
|
||||
#
|
||||
|
||||
template "#{node['nginx']['dir']}/streams-available/ssh" do
|
||||
source "nginx_conf_ssh.erb"
|
||||
owner 'www-data'
|
||||
mode 0640
|
||||
variables domain: domain,
|
||||
upstream_host: upstream_ip_address
|
||||
|
||||
notifies :reload, 'service[nginx]', :delayed
|
||||
end
|
||||
|
||||
nginx_stream "ssh" do
|
||||
action :enable
|
||||
end
|
||||
Reference in New Issue
Block a user