meta.conf 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. client_max_body_size 60m;
  15. index index.html index.htm index.nginx-debian.html;
  16. server_name _;
  17. location ^~ /new_battle/ {
  18. proxy_pass http://dev.ic1101.world:8091;
  19. proxy_redirect off;
  20. proxy_set_header Host $host;
  21. proxy_set_header X-Real-IP $remote_addr;
  22. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  23. }
  24. location ^~ /res/ {
  25. proxy_pass http://dev.ic1101.world;
  26. proxy_redirect off;
  27. proxy_set_header Host $host;
  28. proxy_set_header X-Real-IP $remote_addr;
  29. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  30. }
  31. }