WIP Migrate Gitea proxy to openresty

TODO: Make nginx_ssh stream resource work with openresty cookbook
This commit is contained in:
Râu Cao
2023-07-26 14:15:46 +02:00
parent 1681942fb1
commit 4b14297f83
6 changed files with 32 additions and 58 deletions

View 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