diff --git a/docker-compose.yml b/docker-compose.yml index c23de20..3f4d4bd 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 89ad815..8b24925 100644 --- a/nginx/vhost.d/default +++ b/nginx/vhost.d/default @@ -1,2 +1,12 @@ +## 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 4473bd0..1cb3242 100644 --- a/nginx/vhost.d/unboundedpress.org +++ b/nginx/vhost.d/unboundedpress.org @@ -9,12 +9,6 @@ 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 # static files