summaryrefslogtreecommitdiff
path: root/roles/webservers/files/nginx.conf
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-01-03 14:21:07 -0500
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-01-03 14:21:07 -0500
commit4fd1ae556ec5d9a94f9ca73884a756ca21e1769f (patch)
tree9aaee24b591cb1bf0b3c3c797b98339ca7743d3c /roles/webservers/files/nginx.conf
parent562df598d0303b17e0b040411507f52f3b40d967 (diff)
downloadoldinfra-4fd1ae556ec5d9a94f9ca73884a756ca21e1769f.tar.gz
oldinfra-4fd1ae556ec5d9a94f9ca73884a756ca21e1769f.zip
deploy webservers behind reverse proxy (added poc for headscale)
Diffstat (limited to 'roles/webservers/files/nginx.conf')
-rw-r--r--roles/webservers/files/nginx.conf26
1 files changed, 26 insertions, 0 deletions
diff --git a/roles/webservers/files/nginx.conf b/roles/webservers/files/nginx.conf
new file mode 100644
index 0000000..6ddd8ab
--- /dev/null
+++ b/roles/webservers/files/nginx.conf
@@ -0,0 +1,26 @@
+user www-data;
+worker_processes 4;
+pid /run/nginx.pid;
+
+events {
+ worker_connections 768;
+}
+
+http {
+ sendfile on;
+ tcp_nopush on;
+ tcp_nodelay on;
+ keepalive_timeout 65;
+ types_hash_max_size 2048;
+ include /etc/nginx/mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log;
+
+ gzip on;
+ gzip_disable "msie6";
+
+ include /etc/nginx/conf.d/*.conf;
+ include /etc/nginx/sites-enabled/*;
+}