added files from traefik and placeholder site.
This commit is contained in:
21
PlaceholderTest/nginx/default.conf
Normal file
21
PlaceholderTest/nginx/default.conf
Normal 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 ;
|
||||
}
|
||||
|
||||
}
|
||||
|
32
PlaceholderTest/nginx/nginx.conf
Normal file
32
PlaceholderTest/nginx/nginx.conf
Normal 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;
|
||||
|
||||
}
|
Reference in New Issue
Block a user