~cytrogen/masto-fe

ref: 1db0b28d178dee1db99ca6fdbc5bccf51f2bf445 masto-fe/nginx.conf -rw-r--r-- 754 bytes
1db0b28d — Ittihadyya reordered settings in order of \'severity\' \(unfollow, delete, boost, fav\) and added the setting to allow confirmation of favorites 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
user  nginx;
worker_processes  auto;
pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    sendfile        on;
    tcp_nopush      on;

    keepalive_timeout  65;

    map $http_upgrade $connection_upgrade {
        default upgrade;
        ''      close;
    }

    server {
        listen 80;
        http2 on;

        gzip  on;
        gzip_static on;
        gzip_proxied no-cache;
        gzip_types *;
        gzip_vary on;
        add_header Cache-Control "public, no-cache";

        location / {
            root /usr/share/nginx/html;
            index /index.html;
            try_files $uri /index.html;
        }
    }
}