2017-04-19 16:48:21 +02:00
|
|
|
worker_processes 1;
|
|
|
|
|
|
|
|
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;
|
2017-04-19 16:48:21 +02:00
|
|
|
server_name localhost;
|
2017-12-13 15:50:30 +01:00
|
|
|
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;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|