summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2023-09-19 11:43:37 -0400
committercyfraeviolae <cyfraeviolae>2023-09-19 11:43:37 -0400
commit316e96e06f1a981922a282bc2764450dc1accdd9 (patch)
treec9febc51b25422ce20cdabbb52bc765cfd4d2bb5
parentfc81f21682cb7726b85d068a5d8f6ff1d74912d5 (diff)
redirect http
-rw-r--r--cyfraeviolae.conf5
-rw-r--r--local.conf4
2 files changed, 9 insertions, 0 deletions
diff --git a/cyfraeviolae.conf b/cyfraeviolae.conf
index 5b1e190..6de73b9 100644
--- a/cyfraeviolae.conf
+++ b/cyfraeviolae.conf
@@ -1,5 +1,10 @@
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;
diff --git a/local.conf b/local.conf
index 8cdc8b1..0bb69b7 100644
--- a/local.conf
+++ b/local.conf
@@ -27,6 +27,10 @@ http {
alias /home/sy/code/site/telechromy/;
}
+ location /translation-modality {
+ alias /home/sy/code/site/translation-modality/;
+ }
+
location /countervisual {
alias /home/sy/code/site/countervisual/;
}