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.

22 lines
648 B

5 years ago
  1. server {
  2. listen 80;
  3. server_name backend.deeploving.net;
  4. root /usr/share/nginx/html/love-app/backend/web/;
  5. index index.html index.php;
  6. location ~* ^/KUBERNETES_NAMESPACE/.+\.(js|css|map|jpg|png|ico|woff2|woff|ttf|otf)$ {
  7. rewrite ^/KUBERNETES_NAMESPACE(/.*) $1 last;
  8. }
  9. location / {
  10. try_files $uri $uri/ /index.php?$args;
  11. }
  12. location ~ \.php$ {
  13. fastcgi_pass php:9000;
  14. fastcgi_index index.php;
  15. fastcgi_param SCRIPT_FILENAME /www/love-app/backend/web/$fastcgi_script_name;
  16. include fastcgi_params;
  17. }
  18. access_log /var/log/nginx/access.log;
  19. }