2018-08-13 23:04:09 +02:00
|
|
|
daemon off;
|
2017-04-19 16:48:21 +02:00
|
|
|
worker_processes 1;
|
|
|
|
|
2018-08-13 23:04:09 +02:00
|
|
|
error_log /dev/stderr info;
|
|
|
|
|
2017-04-19 16:48:21 +02:00
|
|
|
events {
|
2017-12-13 15:50:30 +01:00
|
|
|
worker_connections 1024;
|
2017-04-19 16:48:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
2017-12-13 15:50:30 +01:00
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
sendfile on;
|
|
|
|
tcp_nopush on;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
gzip on;
|
|
|
|
server_tokens off;
|
2017-12-01 12:44:37 +01:00
|
|
|
client_max_body_size 10M;
|
2017-04-19 16:48:21 +02:00
|
|
|
|
|
|
|
server {
|
2017-12-13 15:50:30 +01:00
|
|
|
listen 8080;
|
|
|
|
access_log off;
|
2017-04-19 16:48:21 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|