summaryrefslogtreecommitdiff
path: root/local.conf
blob: 6f5f5760a6f6d1899229aacf84ff62a3433fda96 (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
daemon off;
error_log /home/sy/code/logs/error.log;
pid /home/sy/code/logs/nginx.pid;

events {}
http {
    include /etc/nginx/mime.types;
    proxy_temp_path /home/sy/code/logs;
    client_body_temp_path /home/sy/code/nginx/files;
    default_type application/octet-stream;
    server {
        access_log /home/sy/code/logs/access.log;

        location /sweetgreen-calculator {
            alias /home/sy/code/site/sweetgreen-calculator/;
        }

        location /forbidden-salamanders {
            proxy_pass http://127.0.0.1:5000/;
        }

        location /forbidden-salamanders/static {
            alias /home/sy/code/site/forbidden-salamanders/static/;
        }

        location /telechromy {
            alias /home/sy/code/site/telechromy/;
        }

        location /prosodyle {
            alias /home/sy/code/site/prosodyle/;
        }

        location /prosodyle/level-select {
            default_type "text/html";
            alias /home/sy/code/site/prosodyle/level-select.html;
        }

        location /well-ordered {
            alias /home/sy/code/site/well-ordered/;
        }

        location /sumcheck {
            proxy_pass http://127.0.0.1:9000;
        }

        location /sumcheck/static {
            alias /home/sy/code/site/sumcheck/static/;
        }

        location /antiquitysort {
            proxy_pass http://127.0.0.1:8090;
        }

        location /antiquitysort/static {
            alias /home/sy/code/site/antiquitysort/static/;
        }

        location /spectral-renga {
            proxy_pass http://127.0.0.1:8080;
        }

        location /spectral-renga/static {
            alias /home/sy/code/site/spectral-renga/static/;
        }

        location / {
            root /home/sy/code/site/cyfraeviolae;
        }

        error_page 404 /404.html;
        location = /404.html {
            root /home/sy/code/site/cyfraeviolae;
        }

        listen 9090;
    }
}