package com.realnet.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Port_Constant {

	public static String LOCAL_HOST;
	public static String FRONTEND_PORT_9191;
	public static String SURE_SETU_DOMAIN;

	public static String GITEA_IP_ADDRESS;
	public static String GITEA_PORT;
	public static String SURE_VAULT_DOMAIN;
	public final static String SUREVAULT_DEPLOYMENT_TYPE = "32";
	public static String FRONTEND_PORTAL_DOMAIN;

	@Value("${host.local}")
	public void setLocalHost(String localHost) {
		LOCAL_HOST = localHost;
	}

	@Value("${port.frontend}")
	public void setFrontendPort9191(String frontendPort9191) {
		FRONTEND_PORT_9191 = frontendPort9191;
	}
    
    @Value("${domain.sure-setu}")
	public void setSureSetuDomain(String sureSetuDomain) {
		SURE_SETU_DOMAIN = sureSetuDomain;
	}

	@Value("${gitea.ip}")
	public void setGiteaIpAddress(String giteaIpAddress) {
		GITEA_IP_ADDRESS = giteaIpAddress;
	}

	@Value("${gitea.port}")
	public void setGiteaPort(String giteaPort) {
		GITEA_PORT = giteaPort;
	}

	@Value("${domain.sure-vault}")
	public void setSureVaultDomain(String sureVaultDomain) {
		SURE_VAULT_DOMAIN = sureVaultDomain;
	}

}
