Switch Discourse uploads and backups to Garage/S3

This commit is contained in:
Râu Cao
2023-03-17 19:13:04 +07:00
parent d8d1609572
commit 8ae7cdfafd
7 changed files with 51 additions and 15 deletions

View File

@@ -5,6 +5,17 @@
include_recipe "kosmos-nginx"
file "/etc/nginx/conf.d/garage.conf" do
content <<-EOF
upstream garage_web {
server localhost:3902;
}
proxy_cache_path /var/cache/nginx/garage levels=1:2 keys_zone=garage_cache:10m
max_size=1g inactive=60m use_temp_path=off;
EOF
end
domains = node['garage']['s3_web_domains']
domains.each do |server_name|

View File

@@ -1,10 +1,3 @@
upstream garage_web {
server localhost:3902;
}
proxy_cache_path /var/cache/nginx/garage levels=1:2 keys_zone=garage_cache:10m
max_size=1g inactive=60m use_temp_path=off;
server {
listen 443 http2 ssl;
listen [::]:443 http2 ssl;