summaryrefslogtreecommitdiff
path: root/cyfraeviolae.conf
blob: ab4c109b8654ce3ae6a8bdd92ab0efe8619d1e96 (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
server {
    listen 80 default_server;
    server_name _;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl default_server;

    ssl_certificate /etc/letsencrypt/live/cyfraeviolae.org/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/cyfraeviolae.org/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

    location ~ /\. {
      deny all;
    }

    location /sweetgreen-calculator {
        alias /srv/sweetgreen-calculator/;
    }

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

    location /infinite-connections {
        alias /srv/infinite-connections/;
    }

    location /telechromy {
        alias /srv/telechromy/;
    }

    location /countervisual {
        alias /srv/countervisual/;
    }

    location /prosodyle {
        alias /srv/prosodyle/;
    }

    location /prosodyle/level-select {
        default_type "text/html";
        alias /srv/prosodyle/level-select.html;
    }

    location /well-ordered {
        alias /srv/well-ordered/;
    }

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

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

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

    location /angelic-hierarchy {
        alias /srv/angelic-hierarchy/;
    }

    location /the-first-faithful-topology-of-the-library-of-babel {
        alias /srv/the-first-faithful-topology-of-the-library-of-babel/;
    }

    location /git {
        alias /srv/git/;
        fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
        fastcgi_pass unix:/var/run/fcgiwrap.socket;
        fastcgi_split_path_info           ^(/git/?)(.+)$;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param QUERY_STRING $args;
    }

    location / {
        root /srv/cyfraeviolae;
        expires 1h;
        add_header Cache-Control "public";
    }

    error_page 404 /404.html;
    location = /404.html {
        root /srv/cyfraeviolae;
        expires 1h;
        add_header Cache-Control "public";
    }
}

server {
    server_name quietreading.org;
    # return 301 https://$host$request_uri;
    location ~ /\. {
      deny all;
    }

    location / {
        root /srv/quietreading;
        expires 1h;
        add_header Cache-Control "public";
    }

    error_page 404 /404.html;
    location = /404.html {
        root /srv/quietreading;
        expires 1h;
        add_header Cache-Control "public";
    }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/quietreading.org/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/quietreading.org/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}

server {
    if ($host = quietreading.org) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    listen 80;
    server_name quietreading.org;
    return 404; # managed by Certbot


}

# server {
#     listen 443 ssl quietreading.org;

#     ssl_certificate /etc/letsencrypt/live/cyfraeviolae.org/fullchain.pem;
#     ssl_certificate_key /etc/letsencrypt/live/cyfraeviolae.org/privkey.pem;
#     include /etc/letsencrypt/options-ssl-nginx.conf;
#     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

#     location ~ /\. {
#       deny all;
#     }

#     location /sweetgreen-calculator {
#         alias /srv/sweetgreen-calculator/;
#     }

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

#     location /infinite-connections {
#         alias /srv/infinite-connections/;
#     }

#     location /telechromy {
#         alias /srv/telechromy/;
#     }

#     location /countervisual {
#         alias /srv/countervisual/;
#     }

#     location /prosodyle {
#         alias /srv/prosodyle/;
#     }

#     location /prosodyle/level-select {
#         default_type "text/html";
#         alias /srv/prosodyle/level-select.html;
#     }

#     location /well-ordered {
#         alias /srv/well-ordered/;
#     }

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

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

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

#     location /angelic-hierarchy {
#         alias /srv/angelic-hierarchy/;
#     }

#     location /the-first-faithful-topology-of-the-library-of-babel {
#         alias /srv/the-first-faithful-topology-of-the-library-of-babel/;
#     }

#     location /git {
#         alias /srv/git/;
#         fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
#         fastcgi_pass unix:/var/run/fcgiwrap.socket;
#         fastcgi_split_path_info           ^(/git/?)(.+)$;
#         fastcgi_param PATH_INFO $fastcgi_path_info;
#         fastcgi_param QUERY_STRING $args;
#     }

#     location / {
#         root /srv/cyfraeviolae;
#         expires 1h;
#         add_header Cache-Control "public";
#     }

#     error_page 404 /404.html;
#     location = /404.html {
#         root /srv/cyfraeviolae;
#         expires 1h;
#         add_header Cache-Control "public";
#     }
# }