meta.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ##
  2. # You should look at the following URL's in order to grasp a solid understanding
  3. # of Nginx configuration files in order to fully unleash the power of Nginx.
  4. # https://www.nginx.com/resources/wiki/start/
  5. # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
  6. # https://wiki.debian.org/Nginx/DirectoryStructure
  7. #
  8. # In most cases, administrators will remove this file from sites-enabled/ and
  9. # leave it as reference inside of sites-available where it will continue to be
  10. server {
  11. listen 82 default_server;
  12. listen [::]:82 default_server;
  13. root /game/web/meta;
  14. index index.html index.htm index.nginx-debian.html;
  15. server_name _;
  16. location ^~ /new_battle/ {
  17. proxy_pass http://dev.ic1101.world:8091;
  18. proxy_redirect off;
  19. proxy_set_header Host $host;
  20. proxy_set_header X-Real-IP $remote_addr;
  21. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  22. }
  23. location ^~ /res/ {
  24. proxy_pass http://dev.ic1101.world;
  25. proxy_redirect off;
  26. proxy_set_header Host $host;
  27. proxy_set_header X-Real-IP $remote_addr;
  28. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  29. }
  30. }