beta.liberama 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. server {
  2. listen 443 ssl; # managed by Certbot
  3. ssl_certificate /etc/letsencrypt/live/beta.liberama.top/fullchain.pem; # managed by Certbot
  4. ssl_certificate_key /etc/letsencrypt/live/beta.liberama.top/privkey.pem; # managed by Certbot
  5. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  6. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  7. server_name beta.liberama.top;
  8. client_max_body_size 50m;
  9. proxy_read_timeout 1h;
  10. gzip on;
  11. gzip_min_length 1024;
  12. gzip_proxied expired no-cache no-store private auth;
  13. gzip_types *;
  14. location /api {
  15. proxy_pass http://127.0.0.1:34082;
  16. }
  17. location /ws {
  18. proxy_pass http://127.0.0.1:34082;
  19. proxy_http_version 1.1;
  20. proxy_set_header Upgrade $http_upgrade;
  21. proxy_set_header Connection "upgrade";
  22. }
  23. location / {
  24. root /home/beta.liberama/public;
  25. location /tmp {
  26. types { } default_type "application/xml; charset=utf-8";
  27. add_header Content-Encoding gzip;
  28. }
  29. location ~* \.(?:manifest|appcache|html)$ {
  30. expires -1;
  31. }
  32. }
  33. }
  34. server {
  35. listen 80;
  36. server_name beta.liberama.top;
  37. return 301 https://$host$request_uri;
  38. }
  39. server {
  40. listen 80;
  41. server_name b.beta.liberama.top;
  42. client_max_body_size 50m;
  43. proxy_read_timeout 1h;
  44. gzip on;
  45. gzip_min_length 1024;
  46. gzip_proxied expired no-cache no-store private auth;
  47. gzip_types *;
  48. location /api {
  49. proxy_pass http://127.0.0.1:34082;
  50. }
  51. location /ws {
  52. proxy_pass http://127.0.0.1:34082;
  53. proxy_http_version 1.1;
  54. proxy_set_header Upgrade $http_upgrade;
  55. proxy_set_header Connection "upgrade";
  56. }
  57. location / {
  58. root /home/beta.liberama/public;
  59. location /tmp {
  60. types { } default_type "application/xml; charset=utf-8";
  61. add_header Content-Encoding gzip;
  62. }
  63. location ~* \.(?:manifest|appcache|html)$ {
  64. expires -1;
  65. }
  66. }
  67. }