Browse Source

add github header btn and fix api env file

Olivier Massot 6 months ago
parent
commit
6d331d67f1
3 changed files with 22 additions and 1 deletions
  1. 17 0
      api/.env
  2. 4 0
      app/layouts/default.vue
  3. 1 1
      app/pages/about.vue

+ 17 - 0
api/.env

@@ -29,6 +29,13 @@ DATABASE_URL='mysql://root:Hxb3aMXUPb3m%$Ai*@snc_demo_db:3306/snc_demo?serverVer
 CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1|local\.app\.snc-demo\.net)(:[0-9]+)?$'
 ###< nelmio/cors-bundle ###
 
+###> symfony/messenger ###
+# Choose one of the transports below
+# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
+# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
+MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
+###< symfony/messenger ###
+
 ###> symfony/lock ###
 # Choose one of the stores below
 LOCK_DSN=flock
@@ -37,3 +44,13 @@ LOCK_DSN=flock
 ###> symfony/mailer ###
 MAILER_DSN=null://null
 ###< symfony/mailer ###
+
+###> symfony/mercure-bundle ###
+# See https://symfony.com/doc/current/mercure.html#configuration
+# The URL of the Mercure hub, used by the app to publish updates (can be a local URL)
+MERCURE_URL=https://example.com/.well-known/mercure
+# The public URL of the Mercure hub, used by the browser to connect
+MERCURE_PUBLIC_URL=https://example.com/.well-known/mercure
+# The secret used to sign the JWTs
+MERCURE_JWT_SECRET="!ChangeThisMercureHubJWTSecretKey!"
+###< symfony/mercure-bundle ###

+ 4 - 0
app/layouts/default.vue

@@ -28,6 +28,10 @@
       <v-btn :icon="true" @click="toggleTheme">
         <v-icon>{{ isDark ? 'mdi-weather-sunny' : 'mdi-weather-night' }}</v-icon>
       </v-btn>
+
+      <v-btn :icon="true" href="https://github.com/olinox14/snc-demo" target="_blank">
+        <v-icon>mdi-github</v-icon>
+      </v-btn>
     </v-app-bar>
 
     <v-main>

+ 1 - 1
app/pages/about.vue

@@ -24,7 +24,7 @@
         Enjoy!
       </p>
       <p class="text-center">
-        <v-btn href="https://github.com/olinox14/model_snc" target="_blank">
+        <v-btn href="https://github.com/olinox14/snc-demo" target="_blank">
           Contribute
         </v-btn>
       </p>