diff --git a/root/etc/nginx/nginx.conf b/root/etc/nginx/nginx.conf index 3159ddf..f5f3de9 100644 --- a/root/etc/nginx/nginx.conf +++ b/root/etc/nginx/nginx.conf @@ -72,17 +72,54 @@ stream { $geoip2_data_longitude location longitude; } - log_format geoip 'country=$geoip2_data_country_iso_code lat=$geoip2_data_latitude long=$geoip2_data_longitude ' - 'ip=$remote_addr ' - 'protocol=$protocol server_name=$ssl_preread_server_name upstream=$selected_upstream status=$status bytes_sent=$bytes_sent bytes_received=$bytes_received ' - 'session_time=$session_time'; - + log_format geoip 'country=$geoip2_data_country_iso_code ' + 'lat=$geoip2_data_latitude ' + 'long=$geoip2_data_longitude ' + 'ip=$remote_addr ' + 'protocol=$protocol ' + 'server_name=$ssl_preread_server_name ' + 'server_port=$server_port ' + 'upstream=$selected_upstream ' + 'status=$status ' + 'bytes_sent=$bytes_sent ' + 'bytes_received=$bytes_received ' + 'session_time=$session_time'; + # HTTPS server { - listen 0.0.0.0:443; - listen [::]:443; - proxy_pass $selected_upstream; + listen 0.0.0.0:443; + listen [::]:443; + proxy_pass $selected_upstream; + proxy_protocol on; + include /etc/nginx/partials/server.conf; + include /etc/nginx/partials/blocked.conf; + } + # GIT + server { + listen 0.0.0.0:22; + listen [::]:22; + proxy_pass batuu.system.tjo.cloud:22; + proxy_protocol on; + include /etc/nginx/partials/server.conf; + include /etc/nginx/partials/blocked.conf; + } + + # EMAIL + server { + listen 0.0.0.0:25; + listen [::]:25; + listen 0.0.0.0:143; + listen [::]:143; + listen 0.0.0.0:465; + listen [::]:465; + listen 0.0.0.0:587; + listen [::]:587; + listen 0.0.0.0:993; + listen [::]:993; + listen 0.0.0.0:4190; + listen [::]:4190; + proxy_pass mail.system.tjo.cloud:$server_port; proxy_protocol on; include /etc/nginx/partials/server.conf; include /etc/nginx/partials/blocked.conf;