Bladeren bron

Update nginx guide.

Shomari 3 weken geleden
bovenliggende
commit
90b8c05403
4 gewijzigde bestanden met toevoegingen van 399 en 407 verwijderingen
  1. 4 1
      web/nuxt.config.ts
  2. 7 8
      web/package.json
  3. 19 95
      web/pages/guides/Nginx.vue
  4. 369 303
      web/yarn.lock

+ 4 - 1
web/nuxt.config.ts

@@ -34,9 +34,9 @@ export default defineNuxtConfig({
 
     /* Modules */
     modules: [
-        '@nuxtjs/plausible',
         '@nuxtjs/tailwindcss',
         '@pinia/nuxt',
+        '@nuxtjs/plausible',
     ],
 
     /* Plausible (self-hosted) */
@@ -88,4 +88,7 @@ export default defineNuxtConfig({
             },
         },
     },
+
+    /* Set compatibility date. */
+    compatibilityDate: '2024-08-30',
 })

+ 7 - 8
web/package.json

@@ -1,6 +1,6 @@
 {
   "name": "apecs-web",
-  "version": "24.8.18",
+  "version": "24.9.5",
   "license": "MIT",
   "author": "Shomari <[email protected]>",
   "description": "An uncensorable, multi-chain platform for P2P electronic cash Developers to do what they need to do.",
@@ -14,16 +14,16 @@
   },
   "dependencies": {
     "@bitauth/libauth": "1.19.1",
+    "@pinia/nuxt": "0.5.4",
     "@psf/bch-js": "6.7.4",
     "ethereum-blockies-base64": "1.0.2",
     "ethers": "5.7.2",
     "helia": "2.0.1",
-    "mainnet-js": "1.1.31",
     "moment": "2.29.4",
-    "nexajs": "24.8.15",
+    "nexajs": "24.8.16",
     "numeral": "2.0.6",
-    "nuxt": "3.7.4",
-    "pinia": "2.0.32",
+    "nuxt": "3.12.4",
+    "pinia": "2.2.2",
     "uuid": "9.0.0"
   },
   "devDependencies": {
@@ -36,9 +36,8 @@
     "@ledgerhq/hw-app-btc": "9.1.0",
     "@ledgerhq/hw-app-eth": "6.30.2",
     "@ledgerhq/hw-transport-webusb": "6.27.8",
+    "@nuxt/ui-templates": "1.3.4",
     "@nuxtjs/plausible": "0.2.0",
-    "@nuxtjs/tailwindcss": "6.2.0",
-    "@pinia/nuxt": "0.4.7",
-    "postcss-custom-properties": "12.1.11"
+    "@nuxtjs/tailwindcss": "6.12.1"
   }
 }

+ 19 - 95
web/pages/guides/Nginx.vue

@@ -42,75 +42,34 @@
 
         <!-- Page Section -->
         <template #main>
-            <section class="p-3 h-full bg-gradient-to-r from-gray-50 to-gray-100">
-                <h3 class="text-2xl font-medium">
-                    Quick Install
-                </h3>
-
-                <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
-                    <textarea rows="3" class="-mb-2 p-5 w-full border-0 bg-yellow-100">curl -fsSL https://get.docker.com -o get-docker.sh
-chmod +x ./get-docker.sh
-./get-docker.sh</textarea>
-                </div>
-
-                <hr />
-
-                <h3 class="text-2xl font-medium">
-                    Update your system
-                </h3>
-
-                <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
-                    <textarea rows="1" class="-mb-2 p-5 w-full border-0 bg-yellow-100">apt update</textarea>
-                </div>
-
-                <h3 class="text-2xl font-medium">
+            <section class="py-10 max-w-5xl mx-auto">
+                <div class="p-5 text-2xl font-medium bg-gray-100 border-4 border-gray-300 rounded-xl">
                     Create the OpenSSL certificates
-                </h3>
-
-                <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
-                    <textarea rows="1" class="-mb-2 p-5 w-full border-0 bg-yellow-100">openssl req -newkey rsa:2048 -nodes -keyout server.key -x509 -days 3650 -out server.crt</textarea>
-                </div>
-
-                <h3 class="text-2xl font-medium">
-                    Install the certificate
-                </h3>
 
-                <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
-                    <textarea rows="1" class="-mb-2 p-5 w-full border-0 bg-yellow-100">apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common</textarea>
+                    <small class="block text-sm">
+                        NOTE: These are self-signed certificates.
+                    </small>
                 </div>
 
-                <h3 class="mt-10 text-2xl font-medium">
-                    Add the key
-                </h3>
-
-                <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
-                    <textarea rows="2" class="-mb-2 p-5 w-full border-0 bg-yellow-100">curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -</textarea>
-                </div>
-
-                <h3 class="mt-10 text-2xl font-medium">
-                    Add the repository
-                </h3>
-
-                <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
-                    <textarea rows="2" class="-mb-2 p-5 w-full border-0 bg-yellow-100">add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"</textarea>
-                </div>
+<pre class="mt-5 p-5 bg-yellow-100 border-4 border-yellow-300 rounded-xl">
+<code>openssl req -newkey rsa:2048 -nodes -keyout server.key -x509 -days 3650 -out server.crt
+</code></pre>
+            </section>
 
-                <h3 class="mt-10 text-2xl font-medium">
-                    Update the system
-                </h3>
+            <section class="py-10 max-w-5xl mx-auto">
+                <div class="p-5 text-2xl font-medium bg-gray-100 border-4 border-gray-300 rounded-xl">
+                    Install Stream module
 
-                <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
-                    <textarea rows="2" class="-mb-2 p-5 w-full border-0 bg-yellow-100">apt update</textarea>
+                    <small class="block text-sm">
+                        NOTE: May already been installed by the distro.
+                    </small>
                 </div>
 
-                <h3 class="mt-10 text-2xl font-medium">
-                    Install NGINX and NGINX Compose
-                </h3>
-
-                <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
-                    <textarea rows="2" class="-mb-2 p-5 w-full border-0 bg-yellow-100">apt install docker-ce docker-compose</textarea>
-                </div>
+<pre class="mt-5 p-5 bg-yellow-100 border-4 border-yellow-300 rounded-xl">
+<code>apt get install -y libnginx-mod-stream
+</code></pre>
             </section>
+
         </template>
 
         <!-- <section class="mt-5">
@@ -120,38 +79,3 @@ chmod +x ./get-docker.sh
         </section> -->
     </NuxtLayout>
 </template>
-<script>
-export default {
-    data: () => ({
-        base64: null,
-    }),
-    head: () => ({
-        title: 'Decode — APECS Dev',
-        meta: [
-            {
-                hid: 'description', // `vmid` for it as it will not work
-                name: 'description',
-                content: 'Perform various decoding operations.'
-            }
-        ]
-    }),
-    computed: {
-        base64Decoded() {
-            if (this.base64) {
-                return atob(this.base64)
-            } else {
-                return null
-            }
-        },
-    },
-    methods: {
-        //
-    },
-    created: async function () {
-        //
-    },
-    mounted: function () {
-        //
-    },
-}
-</script>

File diff suppressed because it is too large
+ 369 - 303
web/yarn.lock


Some files were not shown because too many files changed in this diff