halo.conf 848 B

12345678910111213141516171819202122
  1. server {
  2. listen 80;
  3. server_name halo.cestong.com.cn;
  4. add_header 'Access-Control-Allow-Origin' '*';
  5. add_header 'Access-Control-Allow-Credentials' 'true';
  6. add_header Cache-Control private;
  7. add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
  8. add_header 'Access-Control-Allow-Headers' 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
  9. location / {
  10. if ($request_method = 'OPTIONS') {
  11. return 204;
  12. }
  13. proxy_pass http://halo.observe.svc.cluster.local;
  14. proxy_set_header Host $host;
  15. proxy_set_header X-Real-IP $remote_addr;
  16. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  17. proxy_hide_header X-Frame-Options;
  18. add_header X-Frame-Options ALLOWALL;
  19. }
  20. }