From 8dd1855399dadbc147f6ed12eeab998133df495c Mon Sep 17 00:00:00 2001 From: mwinter Date: Wed, 28 Jun 2023 21:11:08 +0200 Subject: [PATCH] buttons hopefully working on high res screens and pdf always having correct content type --- docker-compose.yml | 4 ++-- nginx/vhost.d/default | 10 ---------- nginx/vhost.d/unboundedpress.org | 5 +++++ portfolio-nuxt/components/IconButton.vue | 4 ++-- portfolio-nuxt/pages/[files]/[filename].vue | 2 +- portfolio-nuxt/pages/about.vue | 6 +++--- portfolio-nuxt/pages/index.vue | 18 +++++++++++++----- 7 files changed, 26 insertions(+), 23 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3f4d4bd..c23de20 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -84,11 +84,11 @@ services: container_name: portfolio-nuxt build: ./portfolio-nuxt # To rebuild the site and the server run this - command: bash -c "npm run build && node .output/server/index.mjs" + #command: bash -c "npm run build && node .output/server/index.mjs" # To just start the server run this #command: bash -c "node .output/server/index.mjs" # To start the server in dev mode - #command: bash -c "npm run dev -o" + command: bash -c "npm run dev -o" volumes: - portfolio-nuxt:/src/node_modules - ./portfolio-nuxt:/src diff --git a/nginx/vhost.d/default b/nginx/vhost.d/default index 8b24925..89ad815 100644 --- a/nginx/vhost.d/default +++ b/nginx/vhost.d/default @@ -1,12 +1,2 @@ -## Start of configuration add by letsencrypt container -location ^~ /.well-known/acme-challenge/ { - auth_basic off; - auth_request off; - allow all; - root /usr/share/nginx/html; - try_files $uri =404; - break; -} -## End of configuration add by letsencrypt container include /etc/nginx/bots.d/ddos.conf; include /etc/nginx/bots.d/blockbots.conf; diff --git a/nginx/vhost.d/unboundedpress.org b/nginx/vhost.d/unboundedpress.org index 501ab9a..4473bd0 100644 --- a/nginx/vhost.d/unboundedpress.org +++ b/nginx/vhost.d/unboundedpress.org @@ -9,6 +9,11 @@ location ^~ /.well-known/acme-challenge/ { } ## End of configuration add by letsencrypt container +# This is to make sure that the pdf opens in browser + +location ~ ^/api/(.*).pdf$ { + proxy_set_header content-type "application/pdf"; +} # The following are all for collabora routing diff --git a/portfolio-nuxt/components/IconButton.vue b/portfolio-nuxt/components/IconButton.vue index 34d7f03..de1efd3 100644 --- a/portfolio-nuxt/components/IconButton.vue +++ b/portfolio-nuxt/components/IconButton.vue @@ -1,6 +1,6 @@