This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
3 changed files with
9 additions and
6 deletions
|
|
@ -21,8 +21,8 @@ services:
|
|
|
|
|
|
|
|
|
|
|
|
accounts:
|
|
|
|
accounts:
|
|
|
|
# uncomment "build" and comment out "image" to build from sources
|
|
|
|
# uncomment "build" and comment out "image" to build from sources
|
|
|
|
# build: https://github.com/SkynetLabs/skynet-accounts.git#main
|
|
|
|
build: https://github.com/SkynetLabs/skynet-accounts.git#main
|
|
|
|
image: skynetlabs/skynet-accounts
|
|
|
|
# image: skynetlabs/skynet-accounts
|
|
|
|
container_name: accounts
|
|
|
|
container_name: accounts
|
|
|
|
restart: unless-stopped
|
|
|
|
restart: unless-stopped
|
|
|
|
logging: *default-logging
|
|
|
|
logging: *default-logging
|
|
|
|
|
|
@ -4,9 +4,9 @@ include /etc/nginx/conf.d/include/ssl-settings;
|
|
|
|
include /etc/nginx/conf.d/include/init-optional-variables;
|
|
|
|
include /etc/nginx/conf.d/include/init-optional-variables;
|
|
|
|
|
|
|
|
|
|
|
|
# Uncomment to launch new Dashboard under /v2 path
|
|
|
|
# Uncomment to launch new Dashboard under /v2 path
|
|
|
|
# location /v2 {
|
|
|
|
location /v2 {
|
|
|
|
# proxy_pass http://dashboard-v2:9000;
|
|
|
|
proxy_pass http://dashboard-v2:9000;
|
|
|
|
# }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
location / {
|
|
|
|
proxy_pass http://dashboard:3000;
|
|
|
|
proxy_pass http://dashboard:3000;
|
|
|
|
|
|
@ -1,3 +1,6 @@
|
|
|
|
import { SkynetClient } from "skynet-js";
|
|
|
|
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
|
|
|
|
|
|
|
|
);
|
|
|
|