12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #user nobody;
- worker_processes 1;
- events {
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- sendfile on;
- #tcp_nopush on;
- keepalive_timeout 65;
- #gzip on;
- #upstream diagnosis {
- # server diagnosis:8080;
- #}
- server {
- listen 80;
- server_name localhost;
- #resolver 114.114.114.114
- charset utf-8;
- #error_log /usr/share/nginx/logs/error.log;
- #access_log /usr/share/nginx/logs/host.access.log;
- # /rest/diagnosis/login --> /login
- location /rest/diagnosis {
- proxy_pass http://diagnosis:8080/;
- #proxy_set_header Host $host;
- #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- location / {
- root /usr/share/nginx/html;
- index index.html;
- }
- }
- }
|