2020-10-07 22:34:15 +02:00
|
|
|
map_hash_bucket_size 128;
|
|
|
|
|
|
|
|
map $request_uri $redirect_uri {
|
2020-10-08 18:55:39 +02:00
|
|
|
# old www.qownnotes.org
|
2020-10-07 22:34:15 +02:00
|
|
|
/changelog/QOwnNotes /changelog.html;
|
|
|
|
/shortcuts/QOwnNotes /getting-started/shortcuts.html;
|
|
|
|
/Knowledge-base/QOwnNotes-Web-Companion-browser-extension /getting-started/browser-extension.html;
|
|
|
|
/Knowledge-base/How-can-I-help-to-translate-QOwnNotes /contributing/translation.html;
|
|
|
|
/Knowledge-base/How-can-I-get-involved-with-QOwnNotes /contributing/get-involved.html;
|
|
|
|
~*Knowledge-base.* /getting-started/concept.html;
|
2020-10-23 08:34:30 +02:00
|
|
|
#~*Blog.* /;
|
2020-10-07 22:34:15 +02:00
|
|
|
/donate /contributing/donate.html;
|
2020-10-08 18:55:39 +02:00
|
|
|
|
|
|
|
# old docs.qownnotes.org
|
|
|
|
/en/latest/ /getting-started/overview.html;
|
|
|
|
/en/latest/scripting/ /scripting;
|
|
|
|
~*en/latest/scripting/(.+)/$ /scripting/$1.html;
|
|
|
|
~*en/latest/getting-started/(.+)/$ /getting-started/$1.html;
|
|
|
|
~*en/latest/editor/(.+)/$ /editor/$1.html;
|
|
|
|
~*en/latest/contributing/(.+)/$ /contributing/$1.html;
|
2020-10-20 22:09:20 +02:00
|
|
|
|
|
|
|
#/rss/project_version/qownnotes.rss https://api.qownnotes.org/rss/app-releases;
|
2020-10-07 22:34:15 +02:00
|
|
|
}
|
|
|
|
|
2020-10-08 20:21:35 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name qownnotes.org docs.qownnotes.org;
|
|
|
|
return 301 https://www.qownnotes.org$request_uri;
|
|
|
|
}
|
|
|
|
|
2020-10-04 08:44:29 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
2020-10-08 20:33:09 +02:00
|
|
|
server_name localhost www.qownnotes.org;
|
2020-10-04 08:44:29 +02:00
|
|
|
error_page 404 /404.html;
|
|
|
|
|
2020-10-07 22:34:15 +02:00
|
|
|
if ( $redirect_uri ) {
|
|
|
|
return 301 $redirect_uri;
|
|
|
|
}
|
|
|
|
|
2020-10-04 08:44:29 +02:00
|
|
|
location / {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
index index.html;
|
|
|
|
}
|
|
|
|
|
2020-10-26 09:20:57 +01:00
|
|
|
location /api/ {
|
2021-05-01 09:02:42 +02:00
|
|
|
proxy_pass http://qownnotes-api/api/;
|
2020-10-04 08:44:29 +02:00
|
|
|
}
|
2020-10-04 09:11:09 +02:00
|
|
|
|
2020-10-20 22:09:20 +02:00
|
|
|
location /rss/project_version/qownnotes.rss {
|
2021-05-01 09:02:42 +02:00
|
|
|
proxy_pass http://qownnotes-api/rss/app-releases;
|
2020-10-04 09:11:09 +02:00
|
|
|
}
|
2020-10-20 22:09:20 +02:00
|
|
|
|
|
|
|
# location /rss {
|
|
|
|
# proxy_pass http://old.qownnotes.org/rss;
|
|
|
|
# }
|
2020-10-04 08:44:29 +02:00
|
|
|
}
|