invite.conf 921 B

12345678910111213141516171819202122232425262728293031323334
  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 81 default_server;
  12. listen [::]:81 default_server;
  13. root /game/web/invite;
  14. index index.html index.htm index.nginx-debian.html;
  15. server_name _;
  16. location ^~ /new_battle/ {
  17. proxy_pass http://dev.ic1101.world:16379;
  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. }