feat: more protocols
This commit is contained in:
parent
e189401d95
commit
9acc5c83b4
1 changed files with 45 additions and 8 deletions
|
@ -72,17 +72,54 @@ stream {
|
||||||
$geoip2_data_longitude location longitude;
|
$geoip2_data_longitude location longitude;
|
||||||
}
|
}
|
||||||
|
|
||||||
log_format geoip 'country=$geoip2_data_country_iso_code lat=$geoip2_data_latitude long=$geoip2_data_longitude '
|
log_format geoip 'country=$geoip2_data_country_iso_code '
|
||||||
'ip=$remote_addr '
|
'lat=$geoip2_data_latitude '
|
||||||
'protocol=$protocol server_name=$ssl_preread_server_name upstream=$selected_upstream status=$status bytes_sent=$bytes_sent bytes_received=$bytes_received '
|
'long=$geoip2_data_longitude '
|
||||||
'session_time=$session_time';
|
'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 {
|
server {
|
||||||
listen 0.0.0.0:443;
|
listen 0.0.0.0:443;
|
||||||
listen [::]:443;
|
listen [::]:443;
|
||||||
proxy_pass $selected_upstream;
|
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;
|
proxy_protocol on;
|
||||||
include /etc/nginx/partials/server.conf;
|
include /etc/nginx/partials/server.conf;
|
||||||
include /etc/nginx/partials/blocked.conf;
|
include /etc/nginx/partials/blocked.conf;
|
||||||
|
|
Loading…
Reference in a new issue