summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2024-07-20 03:03:43 -0400
committercyfraeviolae <cyfraeviolae>2024-07-20 03:03:43 -0400
commitf775042b20ff023728274567b2eae412614fb9ab (patch)
tree82b542c9a15299e351ab0803c274c9ddd8c3d7e7
parent4742568bacccb8b84e4f3fd3c23732fbaa5941f7 (diff)
qr conf
-rw-r--r--cyfraeviolae.conf9
-rw-r--r--quietreading.conf30
2 files changed, 37 insertions, 2 deletions
diff --git a/cyfraeviolae.conf b/cyfraeviolae.conf
index 7bce20e..213b9a1 100644
--- a/cyfraeviolae.conf
+++ b/cyfraeviolae.conf
@@ -109,6 +109,11 @@ server {
add_header Cache-Control "public";
}
+ location /about {
+ default_type "text/html";
+ alias /srv/quietreading/about.html;
+ }
+
error_page 404 /404.html;
location = /404.html {
root /srv/quietreading;
@@ -149,8 +154,8 @@ server {
add_header Cache-Control "public";
}
- error_page 404 /404.html;
- location = /404.html {
+ error_page 404 /index.html;
+ location = /index.html {
root /srv/aseemslegit;
expires 1h;
add_header Cache-Control "public";
diff --git a/quietreading.conf b/quietreading.conf
new file mode 100644
index 0000000..5bb321d
--- /dev/null
+++ b/quietreading.conf
@@ -0,0 +1,30 @@
+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/quietreading-access.log;
+
+ location / {
+ root /home/sy/code/site/quietreading;
+ }
+
+ location /about {
+ default_type "text/html";
+ alias /home/sy/code/site/quietreading/about.html;
+ }
+
+ error_page 404 /404.html;
+ location = /404.html {
+ root /home/sy/code/site/quietreading;
+ }
+
+ listen 9080;
+ }
+}