57 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| server {
 | |
|   listen       80;
 | |
|   listen  [::]:80;
 | |
|   server_name  localhost;
 | |
| 
 | |
|   #charset koi8-r;
 | |
|   #access_log  /var/log/nginx/host.access.log  main;
 | |
| 
 | |
|   location / {
 | |
|       root   /usr/share/nginx/html;
 | |
|       index  index.html index.htm;
 | |
|       try_files $uri $uri/ /index.html;
 | |
|   }
 | |
| 
 | |
|   location /api {
 | |
|     proxy_pass http://go-admin:8000/api;
 | |
|     proxy_http_version 1.1;
 | |
|     proxy_set_header Connection “”;
 | |
|     proxy_connect_timeout 300s;
 | |
|     proxy_send_timeout 900;
 | |
|     proxy_read_timeout 900;
 | |
|     proxy_buffer_size 32k;
 | |
|     proxy_buffers 4 64k;
 | |
|     proxy_busy_buffers_size 128k;
 | |
|     proxy_redirect off;
 | |
|     proxy_hide_header Vary;
 | |
|     proxy_set_header Accept-Encoding '';
 | |
|     proxy_set_header Referer $http_referer;
 | |
|     proxy_set_header Cookie $http_cookie;
 | |
|     proxy_set_header Host $host;
 | |
|     proxy_set_header X-Real-IP $remote_addr;
 | |
|     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 | |
|     proxy_set_header X-Forwarded-Proto $scheme;
 | |
|   }
 | |
| 
 | |
|   location /login {
 | |
|     proxy_pass http://go-admin:8000/login;
 | |
|     proxy_http_version 1.1;
 | |
|     proxy_set_header Connection “”;
 | |
|     proxy_connect_timeout 300s;
 | |
|     proxy_send_timeout 900;
 | |
|     proxy_read_timeout 900;
 | |
|     proxy_buffer_size 32k;
 | |
|     proxy_buffers 4 64k;
 | |
|     proxy_busy_buffers_size 128k;
 | |
|     proxy_redirect off;
 | |
|     proxy_hide_header Vary;
 | |
|     proxy_set_header Accept-Encoding '';
 | |
|     proxy_set_header Referer $http_referer;
 | |
|     proxy_set_header Cookie $http_cookie;
 | |
|     proxy_set_header Host $host;
 | |
|     proxy_set_header X-Real-IP $remote_addr;
 | |
|     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 | |
|     proxy_set_header X-Forwarded-Proto $scheme;
 | |
|   }
 | |
| }
 |