artyom_h31

Nginx KSPT

Jan 25th, 2021
615
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stream {
  2.     upstream ksptimap {
  3.         server ksptmail.icc.spbstu.ru:993;
  4.     }
  5.  
  6.     upstream ksptsmtp {
  7.         server ksptmail.icc.spbstu.ru:465;
  8.     }
  9.  
  10.     include /etc/nginx/tls.conf;
  11.     ssl_session_cache shared:tls:1m;
  12.  
  13.     server {
  14.         listen     50465 ssl;
  15.         proxy_pass ksptsmtp;
  16.         proxy_ssl  on;
  17.  
  18.         proxy_ssl_protocols           TLSv1 TLSv1.1 TLSv1.2;
  19.         proxy_ssl_ciphers DEFAULT:@SECLEVEL=1;
  20.  
  21.         proxy_ssl_verify        off;
  22.         proxy_ssl_session_reuse on;
  23.     }
  24.  
  25.     server {
  26.         listen     50993 ssl;
  27.         proxy_pass ksptimap;
  28.         proxy_ssl  on;
  29.  
  30.         proxy_ssl_protocols           TLSv1 TLSv1.1 TLSv1.2;
  31.         proxy_ssl_ciphers DEFAULT:@SECLEVEL=1;
  32.  
  33.         proxy_ssl_verify        off;
  34.         proxy_ssl_session_reuse on;
  35.     }
  36. }
  37.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×