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
636 B

5 years ago
  1. server {
  2. listen 80;
  3. server_name api.deeploving.net;
  4. root /usr/share/nginx/html/love-app/api/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/api/web/$fastcgi_script_name;
  16. include fastcgi_params;
  17. }
  18. access_log /var/log/nginx/access.log;
  19. }