nginx.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: nginx-config
  5. namespace: upcloud
  6. data:
  7. default.conf: |
  8. server {
  9. listen 80;
  10. server_name localhost;
  11. charset utf-8;
  12. location / {
  13. index index.html;
  14. root /usr/share/nginx/html;
  15. try_files $uri $uri/ /index.html =404;
  16. }
  17. location ^~/japi/ {
  18. proxy_pass http://192.168.1.88:7002/;
  19. }
  20. location ^~/api/ {
  21. proxy_pass http://192.168.1.88:7002/;
  22. proxy_set_header X-Real-IP $remote_addr;
  23. }
  24. error_page 500 502 503 504 /50x.html;
  25. location = /50x.html {
  26. root html;
  27. }
  28. }