173799761 2 年之前
父節點
當前提交
0925cf996d
共有 5 個文件被更改,包括 193 次插入1 次删除
  1. 1 1
      default
  2. 93 0
      ic1101.conf
  3. 34 0
      invite.conf
  4. 31 0
      meta-chat.conf
  5. 34 0
      meta.conf

+ 1 - 1
default

@@ -323,7 +323,7 @@ server
         listen 443  ssl;
         ssl on;
         server_name  www.yibianshoucang.com;
-        root         /game/website/afh5/1.0.1/ybweb;
+        root         /game/website/afh5/1.0.1/ybweb/;
 
 		location /api/ {			
 			proxy_pass http://47.122.0.171:9989/;		

+ 93 - 0
ic1101.conf

@@ -0,0 +1,93 @@
+##
+# You should look at the following URL's in order to grasp a solid understanding
+# of Nginx configuration files in order to fully unleash the power of Nginx.
+# https://www.nginx.com/resources/wiki/start/
+# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
+# https://wiki.debian.org/Nginx/DirectoryStructure
+#
+# In most cases, administrators will remove this file from sites-enabled/ and
+# leave it as reference inside of sites-available where it will continue to be
+# updated by the nginx packaging team.
+#
+# This file will automatically load configuration files provided by other
+# applications, such as Drupal or Wordpress. These applications will be made
+# available underneath a path with that package name, such as /drupal8.
+#
+# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
+##
+
+# Default server configuration
+#
+server {
+	listen 80 default_server;
+	listen [::]:80 default_server;
+
+	# SSL configuration
+	#
+	# listen 443 ssl default_server;
+	# listen [::]:443 ssl default_server;
+	#
+	# Note: You should disable gzip for SSL traffic.
+	# See: https://bugs.debian.org/773332
+	#
+	# Read up on ssl_ciphers to ensure a secure configuration.
+	# See: https://bugs.debian.org/765782
+	#
+	# Self signed certs generated by the ssl-cert package
+	# Don't use them in a production server!
+	#
+	# include snippets/snakeoil.conf;
+
+	root /game/web/ic1101;
+
+	# Add index.php to the list if you are using PHP
+	index index.html index.htm index.nginx-debian.html;
+
+	server_name _;
+
+	location ^~ /new_battle/ {			
+		proxy_pass http://dev.ic1101.world:16379;		
+		proxy_redirect off;			
+		proxy_set_header Host $host;			
+		proxy_set_header X-Real-IP $remote_addr;			
+		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;		
+	}
+
+	# pass PHP scripts to FastCGI server
+	#
+	#location ~ \.php$ {
+	#	include snippets/fastcgi-php.conf;
+	#
+	#	# With php-fpm (or other unix sockets):
+	#	fastcgi_pass unix:/run/php/php7.4-fpm.sock;
+	#	# With php-cgi (or other tcp sockets):
+	#	fastcgi_pass 127.0.0.1:9000;
+	#}
+
+	# deny access to .htaccess files, if Apache's document root
+	# concurs with nginx's one
+	#
+	#location ~ /\.ht {
+	#	deny all;
+	#}
+}
+
+
+# Virtual Host configuration for example.com
+#
+# You can move that to a different file under sites-available/ and symlink that
+# to sites-enabled/ to enable it.
+#
+#server {
+#	listen 80;
+#	listen [::]:80;
+#
+#	server_name example.com;
+#
+#	root /var/www/example.com;
+#	index index.html;
+#
+#	location / {
+#		try_files $uri $uri/ =404;
+#	}
+#}

+ 34 - 0
invite.conf

@@ -0,0 +1,34 @@
+##
+# You should look at the following URL's in order to grasp a solid understanding
+# of Nginx configuration files in order to fully unleash the power of Nginx.
+# https://www.nginx.com/resources/wiki/start/
+# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
+# https://wiki.debian.org/Nginx/DirectoryStructure
+#
+# In most cases, administrators will remove this file from sites-enabled/ and
+# leave it as reference inside of sites-available where it will continue to be
+
+server {
+	listen 81 default_server;
+	listen [::]:81 default_server;
+
+
+	root /game/web/invite;
+
+	index index.html index.htm index.nginx-debian.html;
+
+	server_name _;
+
+	
+	location ^~ /new_battle/ {			
+		proxy_pass http://dev.ic1101.world:16379;		
+		proxy_redirect off;			
+		proxy_set_header Host $host;			
+		proxy_set_header X-Real-IP $remote_addr;			
+		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;		
+	}
+
+
+}
+
+

+ 31 - 0
meta-chat.conf

@@ -0,0 +1,31 @@
+##
+# You should look at the following URL's in order to grasp a solid understanding
+# of Nginx configuration files in order to fully unleash the power of Nginx.
+# https://www.nginx.com/resources/wiki/start/
+# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
+# https://wiki.debian.org/Nginx/DirectoryStructure
+#
+# In most cases, administrators will remove this file from sites-enabled/ and
+# leave it as reference inside of sites-available where it will continue to be
+
+server {
+	listen 83 default_server;
+	listen [::]:83 default_server;
+
+
+	root /game/web/meta;
+
+	index index.html index.htm index.nginx-debian.html;
+
+	server_name _;
+
+	location / {			
+		proxy_pass http://dev.ic1101.world:9999;	
+		proxy_http_version 1.1;
+		proxy_set_header Upgrade $http_upgrade;
+		proxy_set_header Connection "Upgrade";		
+	}
+		
+}
+
+

+ 34 - 0
meta.conf

@@ -0,0 +1,34 @@
+##
+# You should look at the following URL's in order to grasp a solid understanding
+# of Nginx configuration files in order to fully unleash the power of Nginx.
+# https://www.nginx.com/resources/wiki/start/
+# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
+# https://wiki.debian.org/Nginx/DirectoryStructure
+#
+# In most cases, administrators will remove this file from sites-enabled/ and
+# leave it as reference inside of sites-available where it will continue to be
+
+server {
+	listen 82 default_server;
+	listen [::]:82 default_server;
+
+
+	root /game/web/meta;
+
+	index index.html index.htm index.nginx-debian.html;
+
+	server_name _;
+
+	
+	location ^~ /new_battle/ {			
+		proxy_pass http://dev.ic1101.world:8091;		
+		proxy_redirect off;			
+		proxy_set_header Host $host;			
+		proxy_set_header X-Real-IP $remote_addr;			
+		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;		
+	}
+
+
+}
+
+