Browse Source

fix caddy config

olinox14 2 months ago
parent
commit
93482e6164
2 changed files with 4 additions and 34 deletions
  1. 2 32
      README.md
  2. 2 2
      docker/caddy/caddy/Caddyfile

+ 2 - 32
README.md

@@ -58,37 +58,7 @@ Start the nuxt server:
 > Without it, the frontend's requests will be blocked as CORS errors.
 
 
-## Add Fixtures
-
-    docker exec -it snc_demo_db bash
-
-    mysql -u root -p'Hxb3aMXUPb3m%$Ai*' -D snc_demo -e "
-        ALTER TABLE `snc_demo`.`author` AUTO_INCREMENT = 1;
-        INSERT INTO `snc_demo`.`author` (`name`)
-        VALUES 
-            ('Artist 1'),
-            ('Artist 2'),
-            ('Artist 3');
-    
-        ALTER TABLE `snc_demo`.`song` AUTO_INCREMENT = 1;
-        INSERT INTO `snc_demo`.`song` (`title`, `author_id`)
-        VALUES
-            ('Song A', 1),
-            ('Song B', 1),
-            ('Song C', 1),
-            ('Song D', 2),
-            ('Song E', 2),
-            ('Song F', 3),
-            ('Song G', 3);
-    "
-
-> Warning : If you plan to use this as a starter for your own project, don't forget to change the 
-> DB password !
-
-
-## Try it
-
-At this point, the application should be served at https://local.app.snc-demo.fr/.
+At this point, the application should be served at https://local.app.astra-corp.fr/.
 
 
 ## Accessing the OpenAPI Interface
@@ -96,7 +66,7 @@ At this point, the application should be served at https://local.app.snc-demo.fr
 The OpenAPI interface is available at:
 
 ```
-https://local.api.snc-demo.net/api/docs
+https://local.api.astra-corp.net/api/docs
 ```
 
 This interface provides documentation for all available API routes.

+ 2 - 2
docker/caddy/caddy/Caddyfile

@@ -18,7 +18,7 @@ local.api.astra-corp.net {
   }
 
   # Proxy everything else to the API
-  reverse_proxy http://snc_demo_api
+  reverse_proxy http://astracorp_api
 
   log {
     output file /var/log/api-access.log {
@@ -30,7 +30,7 @@ local.api.astra-corp.net {
 
 local.app.astra-corp.net {
   tls internal
-  reverse_proxy astracorp_app:3002
+  reverse_proxy astracorp_app:3000
   log {
     output file /var/log/app-access.log {
       roll_size 10mb