web.conf 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. server {
  2. listen 443 ssl;
  3. server_name te1egraam.org talegram.top telgorm.top tgram01.top tgram02.top tgram03.top tgram04.top i3b7rf.cc telegram-ap.com telgram-a1.top {webdomain};
  4. ssl_certificate /etc/ssl/mycert/cert.pem;
  5. ssl_certificate_key /etc/ssl/mycert/key.pem;
  6. error_page 404 /error/error.html;
  7. error_page 500 /error/error.html;
  8. set_real_ip_from 103.21.244.0/22;
  9. set_real_ip_from 103.22.200.0/22;
  10. set_real_ip_from 103.31.4.0/22;
  11. set_real_ip_from 104.16.0.0/12;
  12. set_real_ip_from 108.162.192.0/18;
  13. set_real_ip_from 131.0.72.0/22;
  14. set_real_ip_from 141.101.64.0/18;
  15. set_real_ip_from 162.158.0.0/15;
  16. set_real_ip_from 172.64.0.0/13;
  17. set_real_ip_from 173.245.48.0/20;
  18. set_real_ip_from 188.114.96.0/20;
  19. set_real_ip_from 190.93.240.0/20;
  20. set_real_ip_from 197.234.240.0/22;
  21. set_real_ip_from 198.41.128.0/17;
  22. set_real_ip_from 199.27.128.0/21;
  23. set_real_ip_from 2400:cb00::/32;
  24. set_real_ip_from 2606:4700::/32;
  25. set_real_ip_from 2803:f800::/32;
  26. set_real_ip_from 2405:b500::/32;
  27. set_real_ip_from 2405:8100::/32;
  28. set_real_ip_from 2c0f:f248::/32;
  29. set_real_ip_from 2a06:98c0::/29;
  30. real_ip_header CF-Connecting-IP;
  31. location /error/ {
  32. internal;
  33. alias /etc/openresty/;
  34. }
  35. location / {
  36. root /var/www/tg-web-fish/;
  37. lua_code_cache off;
  38. access_by_lua_file /etc/openresty/checkip.lua;
  39. }
  40. }