Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@oogway:~# grep -E -v "^$|^#|#" /usr/local/nginx/nginx.conf
- user nginx;
- worker_processes 1;
- error_log /var/log/nginx/error.log;
- error_log /var/log/nginx/error.log notice;
- error_log /var/log/nginx/error.log info;
- events {
- worker_connections 1024;
- }
- stream {
- include /usr/local/nginx/stream.conf.d/*.conf;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- sendfile on;
- keepalive_timeout 65;
- }
- root@oogway:~#
- ##################################################################
- root@oogway:~# grep -E -v "^$|^#|#" /usr/local/nginx/stream.conf.d/443.conf
- map $ssl_preread_server_name $name {
- default original_dest;
- vpn.ma3x.org vpn_https;
- }
- upstream original_dest {
- server 127.0.0.1:443;
- }
- upstream vpn_https {
- server 127.0.0.1:8443;
- }
- log_format stream_routing '$remote_addr [$time_local] '
- 'with SNI name "$ssl_preread_server_name" '
- 'proxying to "$name" '
- '$protocol $status $bytes_sent $bytes_received '
- '$session_time';
- server {
- listen 9443;
- ssl_preread on;
- proxy_pass $name;
- access_log /var/log/nginx/stream_443.log stream_routing;
- ssl_protocols TLSv1.1 TLSv1.2;
- }
- root@oogway:~#
Add Comment
Please, Sign In to add comment