Skip to content

Commit

Permalink
Add nginx config for supporting grafana - currently IP/dom/grafana/ <…
Browse files Browse the repository at this point in the history
…- dont forget last /git diff!
  • Loading branch information
root committed Apr 16, 2020
1 parent e9e5b71 commit 157f194
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions OVH/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

user nginx;
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;


events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

#gzip on;

include /etc/nginx/conf.d/*.conf;

server {
#location = /dom {
# return 302 /dom/;
#}

#location /dom/ {
# proxy_pass http://172.100.1.2:65010/;
#}

location /dom/ {
#rewrite ^/dom(/.*)$ $1 last;
rewrite ^/dom/(.*) /$1 break;
proxy_pass http://172.100.1.2:65010/;
}
}
}

0 comments on commit 157f194

Please sign in to comment.