added files from traefik and placeholder site.

This commit is contained in:
Andrew
2023-11-03 14:11:50 +00:00
parent eb4febee5c
commit 0a01234610
15 changed files with 1035 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
location ~ ^(.*)$ {
root /usr/share/nginx/html/;
try_files $1 /index.html ;
}
rewrite ^.*$ /index.html;
root /usr/share/nginx/html/;
index index.html;
# TODO: figure out how to make the favicon show anyway
# location = /favicon.ico { access_log off; log_not_found off; }
location ~ ^.*$ {
try_files $uri $uri/ /index.html ;
}
}

View File

@@ -0,0 +1,32 @@
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
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;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}