2017-04-19 16:48:21 +02:00
|
|
|
worker_processes 1;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
sendfile on;
|
|
|
|
tcp_nopush on;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
gzip on;
|
|
|
|
server_tokens off;
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
access_log off;
|
|
|
|
|
|
|
|
location /static/ {
|
|
|
|
alias /opt/netbox/netbox/static/;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_pass http://netbox:8001;
|
2017-09-20 16:56:12 +02:00
|
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
2017-04-19 16:48:21 +02:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|