From 0883c0028471281c0c10e8ab7861c1c102c485d1 Mon Sep 17 00:00:00 2001 From: moonpiedumplings <43561042+moonpiedumplings@users.noreply.github.com> Date: Tue, 7 Feb 2023 12:17:16 -0800 Subject: [PATCH 1/5] create dockerfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..79373325 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM node:18 + +WORKDIR /app + +COPY . /app/ + +COPY package*.json /app/ + +RUN npm install + +RUN npm run build + +EXPOSE 8080 + +CMD ["npm", "start"] From 075f33963c95e773b4306e5eebf45bc601de946b Mon Sep 17 00:00:00 2001 From: moonpiedumplings <43561042+moonpiedumplings@users.noreply.github.com> Date: Tue, 7 Feb 2023 12:18:31 -0800 Subject: [PATCH 2/5] Create docker-compose.yml --- docker-compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..611322b6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +version: '3' +services: + web: + image: Metallic + build: . + ports: + - "8088:8080" # Set first port to whatever you want, linking it with your discord From 34d5dd3b9bfafd43c6e2efaa6bfb69e6deaf4804 Mon Sep 17 00:00:00 2001 From: moonpiedumplings <43561042+moonpiedumplings@users.noreply.github.com> Date: Tue, 7 Feb 2023 12:21:33 -0800 Subject: [PATCH 3/5] Create metallic.nginx --- metallic.nginx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 metallic.nginx diff --git a/metallic.nginx b/metallic.nginx new file mode 100644 index 00000000..48a2e7f9 --- /dev/null +++ b/metallic.nginx @@ -0,0 +1,23 @@ + server { + server_name example.com; # replace with your actual domain + + location / { + # Upgrade WebSockets + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'Upgrade'; + # Increase header buffer + proxy_connect_timeout 10; + proxy_send_timeout 90; + proxy_read_timeout 90; + proxy_buffer_size 128k; + proxy_buffers 4 256k; + proxy_busy_buffers_size 256k; + proxy_temp_file_write_size 256k; + proxy_pass http://127.0.0.1:8088; # change this to the port you have set in your docker-compose + + # The small block below will block googlebot + if ($http_user_agent ~ (Googlebot)) { + return 403; + } + } +} From 27168624e69e893f9ac22d9d3a177a7a9d9a328a Mon Sep 17 00:00:00 2001 From: moonpiedumplings <43561042+moonpiedumplings@users.noreply.github.com> Date: Wed, 8 Feb 2023 00:05:39 -0800 Subject: [PATCH 4/5] lowercase image name --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 611322b6..6d600be7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '3' services: web: - image: Metallic + image: metallic build: . ports: - "8088:8080" # Set first port to whatever you want, linking it with your discord From c31425e6ce0b9c61b4aec86fbb2aa535cd823722 Mon Sep 17 00:00:00 2001 From: Nebelung <81875430+Nebelung-Dev@users.noreply.github.com> Date: Sun, 26 Feb 2023 17:03:48 -0800 Subject: [PATCH 5/5] don't need this --- metallic.nginx | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 metallic.nginx diff --git a/metallic.nginx b/metallic.nginx deleted file mode 100644 index 48a2e7f9..00000000 --- a/metallic.nginx +++ /dev/null @@ -1,23 +0,0 @@ - server { - server_name example.com; # replace with your actual domain - - location / { - # Upgrade WebSockets - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'Upgrade'; - # Increase header buffer - proxy_connect_timeout 10; - proxy_send_timeout 90; - proxy_read_timeout 90; - proxy_buffer_size 128k; - proxy_buffers 4 256k; - proxy_busy_buffers_size 256k; - proxy_temp_file_write_size 256k; - proxy_pass http://127.0.0.1:8088; # change this to the port you have set in your docker-compose - - # The small block below will block googlebot - if ($http_user_agent ~ (Googlebot)) { - return 403; - } - } -}