Advertisement
Guest User

Untitled

a guest
Apr 17th, 2024
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.66 KB | None | 0 0
  1. # configuration file /etc/nginx/nginx.conf:
  2. user www-data;
  3. worker_processes auto;
  4. pid /run/nginx.pid;
  5. include /etc/nginx/modules-enabled/*.conf;
  6.  
  7. events {
  8. worker_connections 768;
  9. # multi_accept on;
  10. }
  11.  
  12. http {
  13.  
  14. ##
  15. # Basic Settings
  16. ##
  17.  
  18. sendfile on;
  19. tcp_nopush on;
  20. types_hash_max_size 2048;
  21. # server_tokens off;
  22.  
  23. # server_names_hash_bucket_size 64;
  24. # server_name_in_redirect off;
  25.  
  26. include /etc/nginx/mime.types;
  27. default_type application/octet-stream;
  28.  
  29. ##
  30. # SSL Settings
  31. ##
  32.  
  33. ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
  34. ssl_prefer_server_ciphers on;
  35.  
  36. ##
  37. # Logging Settings
  38. ##
  39.  
  40. access_log /var/log/nginx/access.log;
  41. error_log /var/log/nginx/error.log;
  42.  
  43. ##
  44. # Gzip Settings
  45. ##
  46.  
  47. gzip on;
  48.  
  49. # gzip_vary on;
  50. # gzip_proxied any;
  51. # gzip_comp_level 6;
  52. # gzip_buffers 16 8k;
  53. # gzip_http_version 1.1;
  54. # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss>
  55.  
  56. ##
  57. # Virtual Host Configs
  58. ##
  59.  
  60. include /etc/nginx/conf.d/*.conf;
  61. include /etc/nginx/sites-enabled/*.conf;
  62. }
  63.  
  64.  
  65. #mail {
  66. # # See sample authentication script at:
  67. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  68. #
  69. # # auth_http localhost/auth.php;
  70. # # pop3_capabilities "TOP" "USER";
  71. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  72. #
  73. # server {
  74. # listen localhost:110;
  75. # protocol pop3;
  76. # proxy on;
  77. # }
  78. #
  79. # server {
  80. # listen localhost:143;
  81. # protocol imap;
  82. # proxy on;
  83. # }
  84. #}
  85.  
  86. # configuration file /etc/nginx/modules-enabled/50-mod-http-geoip2.conf:
  87. load_module modules/ngx_http_geoip2_module.so;
  88.  
  89. # configuration file /etc/nginx/modules-enabled/50-mod-http-image-filter.conf:
  90. load_module modules/ngx_http_image_filter_module.so;
  91.  
  92. # configuration file /etc/nginx/modules-enabled/50-mod-http-xslt-filter.conf:
  93. load_module modules/ngx_http_xslt_filter_module.so;
  94.  
  95. # configuration file /etc/nginx/modules-enabled/50-mod-mail.conf:
  96. load_module modules/ngx_mail_module.so;
  97.  
  98. # configuration file /etc/nginx/modules-enabled/50-mod-stream.conf:
  99. load_module modules/ngx_stream_module.so;
  100.  
  101. # configuration file /etc/nginx/modules-enabled/70-mod-stream-geoip2.conf:
  102. load_module modules/ngx_stream_geoip2_module.so;
  103.  
  104. # configuration file /etc/nginx/mime.types:
  105.  
  106. types {
  107. text/html html htm shtml;
  108. text/css css;
  109. text/xml xml;
  110. image/gif gif;
  111. image/jpeg jpeg jpg;
  112. application/javascript js;
  113. application/atom+xml atom;
  114. application/rss+xml rss;
  115.  
  116. text/mathml mml;
  117. text/plain txt;
  118. text/vnd.sun.j2me.app-descriptor jad;
  119. text/vnd.wap.wml wml;
  120. text/x-component htc;
  121.  
  122. image/png png;
  123. image/tiff tif tiff;
  124. image/vnd.wap.wbmp wbmp;
  125. image/x-icon ico;
  126. image/x-jng jng;
  127. image/x-ms-bmp bmp;
  128. image/svg+xml svg svgz;
  129. image/webp webp;
  130.  
  131. application/font-woff woff;
  132. application/java-archive jar war ear;
  133. application/json json;
  134. application/mac-binhex40 hqx;
  135. application/msword doc;
  136. application/pdf pdf;
  137. application/postscript ps eps ai;
  138. application/rtf rtf;
  139. application/vnd.apple.mpegurl m3u8;
  140. application/vnd.ms-excel xls;
  141. application/vnd.ms-fontobject eot;
  142. application/vnd.ms-powerpoint ppt;
  143. application/vnd.wap.wmlc wmlc;
  144. application/vnd.google-earth.kml+xml kml;
  145. application/vnd.google-earth.kmz kmz;
  146. application/x-7z-compressed 7z;
  147. application/x-cocoa cco;
  148. application/x-java-archive-diff jardiff;
  149. application/x-java-jnlp-file jnlp;
  150. application/x-makeself run;
  151. application/x-perl pl pm;
  152. application/x-pilot prc pdb;
  153. application/x-rar-compressed rar;
  154. application/x-redhat-package-manager rpm;
  155. application/x-sea sea;
  156. application/x-shockwave-flash swf;
  157. application/x-stuffit sit;
  158. application/x-tcl tcl tk;
  159. application/x-x509-ca-cert der pem crt;
  160. application/x-xpinstall xpi;
  161. application/xhtml+xml xhtml;
  162. application/xspf+xml xspf;
  163. application/zip zip;
  164.  
  165. application/octet-stream bin exe dll;
  166. application/octet-stream deb;
  167. application/octet-stream dmg;
  168. application/octet-stream iso img;
  169. application/octet-stream msi msp msm;
  170.  
  171. application/vnd.openxmlformats-officedocument.wordprocessingml.document docx;
  172. application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx;
  173. application/vnd.openxmlformats-officedocument.presentationml.presentation pptx;
  174.  
  175. audio/midi mid midi kar;
  176. audio/mpeg mp3;
  177. audio/ogg ogg;
  178. audio/x-m4a m4a;
  179. audio/x-realaudio ra;
  180.  
  181. video/3gpp 3gpp 3gp;
  182. video/mp2t ts;
  183. video/mp4 mp4;
  184. video/mpeg mpeg mpg;
  185. video/quicktime mov;
  186. video/webm webm;
  187. video/x-flv flv;
  188. video/x-m4v m4v;
  189. video/x-mng mng;
  190. video/x-ms-asf asx asf;
  191. video/x-ms-wmv wmv;
  192. video/x-msvideo avi;
  193. }
  194.  
  195. # configuration file /etc/nginx/sites-enabled/gamerstechsupport.com.conf:
  196. server {
  197. listen IPWASHERE:80;
  198. server_name gamerstechsupport.com;
  199.  
  200. # General proxy settings
  201. proxy_buffering off;
  202. proxy_set_header X-Real-IP $remote_addr;
  203. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  204. proxy_set_header X-Forwarded-Proto $scheme;
  205. proxy_set_header X-Forwarded-Host $http_host;
  206. proxy_set_header X-Forwarded-Port $server_port;
  207. proxy_http_version 1.1;
  208. proxy_set_header Upgrade $http_upgrade;
  209. proxy_set_header Connection 'upgrade';
  210. proxy_read_timeout 600;
  211. proxy_connect_timeout 300;
  212. proxy_redirect off;
  213. client_body_buffer_size 2048M;
  214.  
  215. # ACME challenge location
  216. location ^~ /.well-known/acme-challenge/ {
  217. root /var/www/html;
  218. default_type text/plain;
  219. }
  220.  
  221. location / {
  222. proxy_pass http://10.10.10.2;
  223. }
  224. }
  225.  
  226.  
  227.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement