Chat App Server that is simply a public place to store messages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.1 KiB

events {}
http {
client_max_body_size 2m;
types {
text/html html htm shtml;
text/css css;
application/x-javascript js;
application/pdf pdf;
application/zip zip;
application/x-tar tar;
application/gzip gz;
video/mp4 mpg4 mp4;
application/ogg ogg;
video/webm webm;
image/gif gif;
image/jpeg jpeg jpg;
image/png png;
text/plain txt;
upstream app {
server chat_app:80;
server {
listen 443 ssl;
listen [::]:443 ssl;
client_max_body_size 0;
server_name $hostname;
ssl_certificate /cert.pem;
ssl_certificate_key /privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
gzip on;
gzip_types "*";
location /static/ {
root /;
location / {
proxy_pass http://app;
proxy_set_header Host $http_host;
proxy_redirect off;
server {
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;