I intend to use this privately for music organization.

nginx.conf 577B

1234567891011121314151617181920212223242526272829303132333435363738
  1. worker_processes ${{NUM_WORKERS}};
  2. error_log stderr notice;
  3. daemon off;
  4. pid logs/nginx.pid;
  5. events {
  6. worker_connections 1024;
  7. }
  8. http {
  9. charset UTF-8;
  10. include mime.types;
  11. lua_shared_dict worker 1m;
  12. init_worker_by_lua '
  13. require("worker")
  14. ';
  15. server {
  16. listen ${{PORT}};
  17. lua_code_cache ${{CODE_CACHE}};
  18. location / {
  19. default_type text/html;
  20. content_by_lua '
  21. require("lapis").serve("app")
  22. ';
  23. }
  24. location /static/ {
  25. alias static/;
  26. }
  27. location /favicon.ico {
  28. alias static/favicon.ico;
  29. }
  30. }
  31. }