Complete Refactor - Changed to Django
This commit is contained in:
27
nginx/configs/nginx.conf
Normal file
27
nginx/configs/nginx.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
# This file should be put under /etc/nginx/conf.d/
|
||||
# Or place as /etc/nginx/nginx.conf
|
||||
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
real_ip_header X-Forwarded-For;
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
|
||||
types_hash_bucket_size 128;
|
||||
}
|
||||
31
nginx/configs/sites/default.conf
Normal file
31
nginx/configs/sites/default.conf
Normal file
@@ -0,0 +1,31 @@
|
||||
# Default NGINX Config
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name keywarden.dev.ntbx.io;
|
||||
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
http2 on;
|
||||
|
||||
server_name keywarden.dev.ntbx.io;
|
||||
|
||||
ssl_certificate /certs/certificate.pem;
|
||||
ssl_certificate_key /certs/key.pem;
|
||||
include /certs/options-ssl-nginx.conf;
|
||||
|
||||
client_max_body_size 50M;
|
||||
|
||||
location / {
|
||||
proxy_pass http://keywarden:8000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user