2018-08-13 16:04:09 -05:00
|
|
|
daemon off;
|
2017-04-19 09:48:21 -05:00
|
|
|
worker_processes 1;
|
|
|
|
|
2018-08-13 16:04:09 -05:00
|
|
|
error_log /dev/stderr info;
|
|
|
|
|
2017-04-19 09:48:21 -05:00
|
|
|
events {
|
2017-12-13 08:50:30 -06:00
|
|
|
worker_connections 1024;
|
2017-04-19 09:48:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
2017-12-13 08:50:30 -06: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 05:44:37 -06:00
|
|
|
client_max_body_size 10M;
|
2017-04-19 09:48:21 -05:00
|
|
|
|
|
|
|
server {
|
2017-12-13 08:50:30 -06:00
|
|
|
listen 8080;
|
|
|
|
access_log off;
|
2017-04-19 09:48:21 -05:00
|
|
|
|
|
|
|
location /static/ {
|
|
|
|
alias /opt/netbox/netbox/static/;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_pass http://netbox:8001;
|
2017-09-20 09:56:12 -05:00
|
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
2017-04-19 09:48:21 -05:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
|
|
|
|
}
|
|
|
|
}
|
2020-10-18 08:16:16 -05:00
|
|
|
|
|
|
|
server {
|
|
|
|
listen 8081;
|
|
|
|
access_log off;
|
|
|
|
|
|
|
|
location = /stub_status {
|
|
|
|
stub_status;
|
|
|
|
}
|
|
|
|
}
|
2017-04-19 09:48:21 -05:00
|
|
|
}
|