Docker-Swarm-Loadbalancer/bouncer/NginxDefault
Matthew Baggett 2fd5c62074
Feature/bouncer (#7)
* Initial work

* Setup script stub

* Wrap runit and call dos2unix beforehand.

* Working to the point I need to make it sync in and out of s3.

* Seems like we're done and its working.

* Add build process.

* Add build process.

* Bugfixes discovered during deployment.

* Copy certs into /live because certbot is a pain.

* More elegant about hammering letsencrypt.

* Working!
2021-06-06 17:38:46 +02:00

25 lines
586 B
Text

server {
listen 80 default_server;
listen [::]:80 default_server;
client_max_body_size 1024M;
root /app/public;
server_name _;
index index.html index.htm;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}