testing on dev3

This commit is contained in:
Michał Leszczyk 2022-04-15 22:45:32 +02:00
parent 581c93d0cd
commit a71de44276
No known key found for this signature in database
GPG Key ID: FA123CA8BAA2FBF4
3 changed files with 9 additions and 6 deletions

View File

@ -21,8 +21,8 @@ services:
accounts:
# uncomment "build" and comment out "image" to build from sources
# build: https://github.com/SkynetLabs/skynet-accounts.git#main
image: skynetlabs/skynet-accounts
build: https://github.com/SkynetLabs/skynet-accounts.git#main
# image: skynetlabs/skynet-accounts
container_name: accounts
restart: unless-stopped
logging: *default-logging

View File

@ -4,9 +4,9 @@ include /etc/nginx/conf.d/include/ssl-settings;
include /etc/nginx/conf.d/include/init-optional-variables;
# Uncomment to launch new Dashboard under /v2 path
# location /v2 {
# proxy_pass http://dashboard-v2:9000;
# }
location /v2 {
proxy_pass http://dashboard-v2:9000;
}
location / {
proxy_pass http://dashboard:3000;

View File

@ -1,3 +1,6 @@
import { SkynetClient } from "skynet-js";
export default new SkynetClient(`https://${process.env.GATSBY_PORTAL_DOMAIN}`);
// In production-like environment, let SkynetClient figure out the best portal
export default new SkynetClient(
process.env.NODE_ENV === "development" ? `https://${process.env.GATSBY_PORTAL_DOMAIN}` : undefined
);