Yu-Gi-Oh! Deck Building and Card Inventory Management web interface written in Common Lisp, utilizing HTMX.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123 行
2.9KB

  1. server {
  2. listen [::]:443 default_server ssl;
  3. listen 443 default_server ssl;
  4. server_name phntsm.ddns.net;
  5. ssl_certificate "/etc/ssl/nginx/phntsm.ddns.net.crt";
  6. ssl_certificate_key "/etc/ssl/nginx/phntsm.ddns.net.key";
  7. ssl_dhparam "/etc/ssl/nginx/phntsm.ddns.net.dhparam";
  8. ssl_session_timeout 5m;
  9. ssl_protocols TLSv1.2;
  10. ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
  11. ssl_session_cache shared:SSL:50m;
  12. ssl_prefer_server_ciphers on;
  13. root /var/www/html;
  14. index index.html;
  15. location / {
  16. # First attempt to serve request as file, then
  17. # as directory, then fall back to displaying a 404.
  18. # try_files $uri $uri/ =404;
  19. set_real_ip_from unix:;
  20. real_ip_header X-Forwarded-For;
  21. real_ip_recursive on;
  22. client_max_body_size 8m;
  23. #auth_basic "Restricted Content";
  24. #auth_basic_user_file /etc/nginx/.htpasswd;
  25. proxy_read_timeout 300;
  26. proxy_connect_timeout 300;
  27. proxy_send_timeout 300;
  28. fastcgi_read_timeout 300;
  29. proxy_pass http://127.0.0.1:5005;
  30. include /etc/nginx/fastcgi_params;
  31. include /etc/nginx/proxy_params;
  32. }
  33. # /~user web directories
  34. location ~ ^/~(.+?)(/.*)?$ {
  35. alias /home/$1/www$2;
  36. index index.html index.htm;
  37. autoindex on;
  38. }
  39. # location /_/static/assets/ {
  40. # alias /home/git/public/;
  41. # }
  42. location /git/ {
  43. auth_basic "Restricted Content";
  44. auth_basic_user_file /etc/nginx/.htpasswd;
  45. proxy_read_timeout 300;
  46. proxy_connect_timeout 300;
  47. proxy_send_timeout 300;
  48. fastcgi_read_timeout 300;
  49. client_max_body_size 512M;
  50. # make nginx use unescaped URI, keep "%2F" as is
  51. rewrite ^ $request_uri;
  52. rewrite ^/git(/.*) $1 break;
  53. proxy_pass http://127.0.0.1:3000$uri;
  54. include /etc/nginx/fastcgi_params;
  55. include /etc/nginx/proxy_params;
  56. }
  57. location ~ /collectd/ {
  58. gzip off;
  59. root /home/user/code/alpine-collectd-web;
  60. auth_basic "Restricted Content";
  61. auth_basic_user_file /etc/nginx/.htpasswd;
  62. proxy_read_timeout 300;
  63. proxy_connect_timeout 300;
  64. proxy_send_timeout 300;
  65. fastcgi_read_timeout 300;
  66. #proxy_http_version 1.1;
  67. rewrite ^/collectd/(.*) /$1 break;
  68. proxy_pass http://127.0.0.1:8888;
  69. }
  70. location ~ /psy/ {
  71. auth_basic "Restricted Content";
  72. auth_basic_user_file /etc/nginx/.htpasswd;
  73. proxy_read_timeout 300;
  74. proxy_connect_timeout 300;
  75. proxy_send_timeout 300;
  76. fastcgi_read_timeout 300;
  77. #proxy_http_version 1.1;
  78. # rewrite ^/psy/(.*) /$1 break;
  79. include /etc/nginx/proxy_params;
  80. proxy_pass http://127.0.0.1:9292;
  81. }
  82. # location ~ \.php$ {
  83. # include /etc/nginx/fastcgi_params;
  84. # include /etc/nginx/proxy_params;
  85. # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  86. # # fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
  87. # fastcgi_pass unix:/var/run/php/php-fpm.sock;
  88. # }
  89. # location ~ /phpmyadmin/ {
  90. # auth_basic "Restricted Content";
  91. # auth_basic_user_file /etc/nginx/.htpasswd;
  92. # index index.php;
  93. # }
  94. location ~ /\.ht {
  95. deny all;
  96. }
  97. }