Configs, dot files, lists of plugins, everything I do to customize my workflow to my liking.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

146 lines
4.6 KiB

  1. worker_processes 1;
  2. events {
  3. worker_connections 1024;
  4. }
  5. http {
  6. include mime.types;
  7. default_type application/octet-stream;
  8. sendfile on;
  9. keepalive_timeout 65;
  10. gzip on;
  11. types_hash_max_size 4096;
  12. server {
  13. listen 80;
  14. listen [::]:80;
  15. server_name _;
  16. return 301 https://$host$request_uri;
  17. }
  18. server {
  19. listen 443 ssl http2;
  20. listen [::]:443 ssl http2;
  21. server_name home.hak8or.com www.home.hak8or.com;
  22. access_log /var/log/nginx/home.access.log;
  23. ssl_certificate /etc/letsencrypt/live/home.hak8or.com/fullchain.pem;
  24. ssl_certificate_key /etc/letsencrypt/live/home.hak8or.com/privkey.pem;
  25. ssl_trusted_certificate /etc/letsencrypt/live/home.hak8or.com/fullchain.pem;
  26. location / {
  27. root /var/www/home.hak8or.com;
  28. index index.html index.htm;
  29. }
  30. }
  31. server {
  32. listen 443 ssl http2;
  33. listen [::]:443 ssl http2;
  34. server_name portainer.hak8or.com www.portainer.hak8or.com;
  35. access_log /var/log/nginx/portainer.access.log;
  36. ssl_certificate /etc/letsencrypt/live/portainer.hak8or.com/fullchain.pem;
  37. ssl_certificate_key /etc/letsencrypt/live/portainer.hak8or.com/privkey.pem;
  38. ssl_trusted_certificate /etc/letsencrypt/live/portainer.hak8or.com/fullchain.pem;
  39. location / {
  40. proxy_pass http://192.168.1.2:9000;
  41. }
  42. }
  43. server {
  44. listen 443 ssl http2;
  45. listen [::]:443 ssl http2;
  46. server_name prox.hak8or.com www.prox.hak8or.com;
  47. access_log /var/log/nginx/prox.access.log;
  48. ssl_certificate /etc/letsencrypt/live/prox.hak8or.com/fullchain.pem;
  49. ssl_certificate_key /etc/letsencrypt/live/prox.hak8or.com/privkey.pem;
  50. ssl_trusted_certificate /etc/letsencrypt/live/prox.hak8or.com/fullchain.pem;
  51. location / {
  52. proxy_pass https://192.168.1.2:8006;
  53. proxy_http_version 1.1;
  54. proxy_set_header Upgrade $http_upgrade;
  55. proxy_set_header Connection "upgrade";
  56. proxy_read_timeout 86400;
  57. }
  58. }
  59. server {
  60. listen 443 ssl http2;
  61. listen [::]:443 ssl http2;
  62. server_name www.logging.hak8or.com logging.hak8or.com;
  63. access_log /var/log/nginx/logging.access.log;
  64. ssl_certificate /etc/letsencrypt/live/logging.hak8or.com/fullchain.pem;
  65. ssl_certificate_key /etc/letsencrypt/live/logging.hak8or.com/privkey.pem;
  66. ssl_trusted_certificate /etc/letsencrypt/live/logging.hak8or.com/fullchain.pem;
  67. location / {
  68. proxy_pass http://192.168.1.5:3000;
  69. }
  70. }
  71. server {
  72. listen 443 ssl http2;
  73. listen [::]:443 ssl http2;
  74. server_name www.gitea.hak8or.com gitea.hak8or.com;
  75. access_log /var/log/nginx/gitea.access.log;
  76. ssl_certificate /etc/letsencrypt/live/gitea.hak8or.com/fullchain.pem;
  77. ssl_certificate_key /etc/letsencrypt/live/gitea.hak8or.com/privkey.pem;
  78. ssl_trusted_certificate /etc/letsencrypt/live/gitea.hak8or.com/fullchain.pem;
  79. location / {
  80. proxy_pass http://192.168.1.6:3900;
  81. }
  82. }
  83. # server {
  84. # listen 443 ssl http2;
  85. # listen [::]:443 ssl http2;
  86. # server_name www.dumbyt.hak8or.com dumbyt.hak8or.com;
  87. # access_log /var/log/nginx/dumbyt.access.log;
  88. # ssl_certificate /etc/letsencrypt/live/dumbyt.hak8or.com/fullchain.pem;
  89. # ssl_certificate_key /etc/letsencrypt/live/dumbyt.hak8or.com/privkey.pem;
  90. # ssl_trusted_certificate /etc/letsencrypt/live/dumbyt.hak8or.com/fullchain.pem;
  91. # location / {
  92. # proxy_pass http://192.168.1.7:3000;
  93. # }
  94. # }
  95. server {
  96. listen 443 ssl http2;
  97. listen [::]:443 ssl http2;
  98. server_name www.yarrr.hak8or.com yarrr.hak8or.com;
  99. access_log /var/log/nginx/yarrr.access.log;
  100. ssl_certificate /etc/letsencrypt/live/yarrr.hak8or.com/fullchain.pem;
  101. ssl_certificate_key /etc/letsencrypt/live/yarrr.hak8or.com/privkey.pem;
  102. ssl_trusted_certificate /etc/letsencrypt/live/yarrr.hak8or.com/fullchain.pem;
  103. location / {
  104. root /var/www/yarrr.hak8or.com;
  105. index index.html index.htm;
  106. }
  107. location /sab {
  108. proxy_pass http://192.168.1.3:8085;
  109. }
  110. location /shows {
  111. proxy_pass http://192.168.1.3:8989;
  112. }
  113. location /movies {
  114. proxy_pass http://192.168.1.3:7878;
  115. }
  116. }
  117. }