forked from Cookies_Public/AquaDX
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| server {
 | |
|   listen 443 ssl;
 | |
|   server_name aqua.example.com;
 | |
|   ssl_certificate /etc/nginx/certs/aqua.example.com.crt;
 | |
|   ssl_certificate_key /etc/nginx/certs/aqua.example.com.key;
 | |
| 
 | |
|   # Absolute path to store the compiled AquaNet,
 | |
|   # there should be index.html in the directory.
 | |
|   location / {
 | |
|     root /var/www/html/AquaNet/;
 | |
|     try_files $uri $uri/ @router;
 | |
|     index index.html;
 | |
|   }
 | |
| 
 | |
|   # Route for redirection to index.html
 | |
|   location @router{
 | |
|     rewrite ^.*$ /index.html last;
 | |
|   }
 | |
| 
 | |
|   # If you have modified DATA_HOST, 
 | |
|   # you will need to prepare your own resources.
 | |
|   # location /d/ {
 | |
|   #   root /var/www/html/GameData/;
 | |
|   # }
 | |
| 
 | |
|   # Reverse Proxy to your AquaDX.
 | |
|   location /aqua/ {
 | |
|     proxy_redirect off;
 | |
|     proxy_http_version 1.1;
 | |
|     proxy_set_header Host $host;
 | |
|     proxy_set_header X-Forwarded-Proto $scheme;
 | |
|     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 | |
|     proxy_set_header Upgrade $http_upgrade;
 | |
|     proxy_set_header Connection "upgrade";
 | |
|     proxy_pass http://127.0.0.1/;
 | |
|     proxy_buffering off;
 | |
|   }
 | |
| }
 | 
