12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #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;
- location /login {
- proxy_pass http://diagnosis:8080/;
- #proxy_set_header Host $host;
- #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- location /logout {
- proxy_pass http://diagnosis:8080/;
- #proxy_set_header Host $host;
- #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- # /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;
- }
- }
- }
|