mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
24 lines
514 B
Nginx Configuration File
24 lines
514 B
Nginx Configuration File
|
server {
|
||
|
listen 8080 default_server;
|
||
|
|
||
|
location = /favicon.ico {
|
||
|
return 204;
|
||
|
}
|
||
|
|
||
|
location /static {
|
||
|
alias /opt/graphite/static;
|
||
|
expires max;
|
||
|
}
|
||
|
|
||
|
location / {
|
||
|
proxy_pass_header Server;
|
||
|
proxy_set_header Host $http_host;
|
||
|
proxy_redirect off;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Scheme $scheme;
|
||
|
proxy_connect_timeout 10;
|
||
|
proxy_read_timeout 10;
|
||
|
proxy_pass http://127.0.0.1:8000;
|
||
|
}
|
||
|
}
|