Skip to content

Commit

Permalink
fix: stream config file
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox committed Sep 7, 2024
1 parent be91130 commit b416a33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tf/modules/ooni_backendproxy/templates/setup-backend-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ EOF
sudo mv $tmpfile /etc/nginx/sites-available/default


tmpfile_stream=$(mktemp /tmp/nginx-config.XXXXXX)
tmpfile_stream=$(mktemp /tmp/nginx-stream-config.XXXXXX)
cat > $tmpfile_stream <<EOF
stream {
upstream clickhouse_backend {
Expand All @@ -39,7 +39,7 @@ stream {
error_log /var/log/nginx/error.log;
}
EOF
sudo mv $tmpfile_stream /etc/nginx/modules-enabled/stream.config
sudo mv $tmpfile_stream /etc/nginx/modules-enabled/stream.conf

sudo nginx -t
sudo systemctl reload nginx

0 comments on commit b416a33

Please sign in to comment.