custom-domain.conf 618 B

12345678910111213141516171819202122232425
  1. server {
  2. listen 80;
  3. server_name custom.domain.com;
  4. index nginx.html index.html index.htm index.php default.html default.htm default.php;
  5. root /www;
  6. client_max_body_size 300M;
  7. include conf.d/*.locations;
  8. location = /(robots.txt|favicon.ico) {
  9. log_not_found off;
  10. }
  11. location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ {
  12. expires 30d;
  13. }
  14. location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$ {
  15. add_header Access-Control-Allow-Origin "*";
  16. expires 30d;
  17. }
  18. location ~ /\.(?!well-known) {
  19. deny all;
  20. }
  21. }