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 @@