Compare commits

..

No commits in common. "6058226e68992ac6b809428e90ba3451e59a182b" and "6d11759ad1f00af0dd62ca52ea1b02373baf35d3" have entirely different histories.

8 changed files with 36 additions and 58 deletions

View File

@ -89,26 +89,33 @@ jobs:
docker pull registry.redecarneir.us/onlyoneaccesstemplate:latest docker pull registry.redecarneir.us/onlyoneaccesstemplate:latest
# Executa o novo container na porta 80 # Executa o novo container na porta 80
# docker run -d \
# --name onlyoneaccesstemplate \
# --restart unless-stopped \
# -p 80:8080 \
# -p 443:8081 \
# -e ASPNETCORE_ENVIRONMENT=Production \
# -e ASPNETCORE_URLS="http://+:8080;https://+:8081" \
# registry.redecarneir.us/onlyoneaccesstemplate:latest
# Executa o novo container apenas com HTTP
docker run -d \ docker run -d \
--name onlyoneaccesstemplate \ --name onlyoneaccesstemplate \
--restart unless-stopped \ --restart unless-stopped \
--add-host="k3ss1:172.17.0.1" \ -p 80:8080 \
--add-host="k3sw2:172.17.0.1" \ --memory=2g \
-p 80:8080 \ --cpus=1.5 \
--memory=2g \ --health-cmd="curl -f http://localhost:8080/health || exit 1" \
--cpus=1.5 \ --health-interval=30s \
--health-cmd="curl -f http://localhost:8080/health || exit 1" \ --health-timeout=10s \
--health-interval=30s \ --health-retries=3 \
--health-timeout=10s \ --health-start-period=60s \
--health-retries=3 \ -e ASPNETCORE_ENVIRONMENT=Production \
--health-start-period=60s \ -e ASPNETCORE_URLS="http://+:8080" \
-e ASPNETCORE_ENVIRONMENT=Production \ -e DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true \
-e ASPNETCORE_URLS="http://+:8080" \ -e DOTNET_USE_POLLING_FILE_WATCHER=true \
-e DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true \ -e DOTNET_EnableDiagnostics=0 \
-e DOTNET_USE_POLLING_FILE_WATCHER=true \ -e DOTNET_RUNNING_IN_CONTAINER=true \
-e DOTNET_EnableDiagnostics=0 \ registry.redecarneir.us/onlyoneaccesstemplate:latest
-e DOTNET_RUNNING_IN_CONTAINER=true \
registry.redecarneir.us/onlyoneaccesstemplate:latest
# Limpa imagens não utilizadas # Limpa imagens não utilizadas
docker image prune -f docker image prune -f

View File

@ -48,8 +48,6 @@ namespace OnlyOneAccessTemplate.Controllers
return "en"; return "en";
if (path.StartsWith("/es")) if (path.StartsWith("/es"))
return "es"; return "es";
if (path.StartsWith("/br"))
return "pt";
return "pt"; // default return "pt"; // default
} }
@ -90,7 +88,6 @@ namespace OnlyOneAccessTemplate.Controllers
// Current language display // Current language display
ViewBag.CurrentLanguageDisplay = _languageService.GetLanguageDisplayName(language); ViewBag.CurrentLanguageDisplay = _languageService.GetLanguageDisplayName(language);
//ViewBag.CtaButtonText = "Mudar";
} }
protected void SetupContentViewBag(SiteConfiguration config, string language) protected void SetupContentViewBag(SiteConfiguration config, string language)
@ -385,9 +382,9 @@ namespace OnlyOneAccessTemplate.Controllers
ViewBag.FooterMadeWith = "Feito com ❤️ no Brasil"; ViewBag.FooterMadeWith = "Feito com ❤️ no Brasil";
// Contact info // Contact info
ViewBag.ContactEmail = "contato@convert-it.online"; ViewBag.ContactEmail = "contato@seusite.com";
ViewBag.ContactPhone = null; ViewBag.ContactPhone = "(11) 99999-9999";
ViewBag.ContactAddress = "São Bernando do Campo, SP"; ViewBag.ContactAddress = "São Paulo, SP";
} }
protected void SetupEnglishContent() protected void SetupEnglishContent()

View File

@ -19,12 +19,11 @@ namespace OnlyOneAccessTemplate.Controllers
[Route("")] [Route("")]
[Route("pt")] [Route("pt")]
[Route("br")]
public IActionResult Index() public IActionResult Index()
{ {
var language = GetCurrentLanguage(); var language = GetCurrentLanguage();
var siteConfig = _siteConfig.GetConfiguration(language); var siteConfig = _siteConfig.GetConfiguration(language);
ViewBag.PageTitle = siteConfig.SiteTitle; ViewBag.PageTitle = siteConfig.SiteTitle;
ViewBag.PageDescription = siteConfig.SiteDescription; ViewBag.PageDescription = siteConfig.SiteDescription;
ViewBag.CurrentPage = "home"; ViewBag.CurrentPage = "home";
@ -32,18 +31,6 @@ namespace OnlyOneAccessTemplate.Controllers
return View(siteConfig); return View(siteConfig);
} }
[Route("privacy")]
public IActionResult Privacy()
{
return View();
}
[Route("terms")]
public IActionResult Terms()
{
return View();
}
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error() public IActionResult Error()
{ {

View File

@ -235,7 +235,6 @@
@await Html.PartialAsync("_AdUnit") @await Html.PartialAsync("_AdUnit")
<!-- Seção CTA Final --> <!-- Seção CTA Final -->
@*
<section class="final-cta py-5"> <section class="final-cta py-5">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
@ -249,9 +248,7 @@
</div> </div>
</div> </div>
</section> </section>
</div>
*@
</div>
<!-- Sidebar Direita com Anúncios --> <!-- Sidebar Direita com Anúncios -->
<div class="col-xl-2 col-lg-2 d-none d-lg-block"> <div class="col-xl-2 col-lg-2 d-none d-lg-block">

View File

@ -63,8 +63,8 @@
<p>Para questões sobre esta política de privacidade ou seus dados pessoais, entre em contato conosco:</p> <p>Para questões sobre esta política de privacidade ou seus dados pessoais, entre em contato conosco:</p>
<ul> <ul>
<li><strong>E-mail:</strong> @ViewBag.ContactEmail</li> <li><strong>E-mail:</strong> @ViewBag.ContactEmail</li>
@* <li><strong>Telefone:</strong> @ViewBag.ContactPhone</li> <li><strong>Telefone:</strong> @ViewBag.ContactPhone</li>
*@ </ul> </ul>
</section> </section>
</div> </div>
</div> </div>

View File

@ -63,8 +63,8 @@
<p>Para questões sobre estes termos, entre em contato conosco:</p> <p>Para questões sobre estes termos, entre em contato conosco:</p>
<ul> <ul>
<li><strong>E-mail:</strong> @ViewBag.ContactEmail</li> <li><strong>E-mail:</strong> @ViewBag.ContactEmail</li>
@* <li><strong>Telefone:</strong> @ViewBag.ContactPhone</li> <li><strong>Telefone:</strong> @ViewBag.ContactPhone</li>
*@ </ul> </ul>
</section> </section>
</div> </div>
</div> </div>

View File

@ -36,12 +36,8 @@
<h6 class="text-primary mb-3">@ViewBag.FooterMenuTitle</h6> <h6 class="text-primary mb-3">@ViewBag.FooterMenuTitle</h6>
<ul class="list-unstyled"> <ul class="list-unstyled">
<li><a href="@ViewBag.HomeUrl" class="text-light text-decoration-none">@ViewBag.MenuHome</a></li> <li><a href="@ViewBag.HomeUrl" class="text-light text-decoration-none">@ViewBag.MenuHome</a></li>
@*
<li><a href="@ViewBag.AboutUrl" class="text-light text-decoration-none">@ViewBag.MenuAbout</a></li> <li><a href="@ViewBag.AboutUrl" class="text-light text-decoration-none">@ViewBag.MenuAbout</a></li>
<li><a href="@ViewBag.ContactUrl" class="text-light text-decoration-none">@ViewBag.MenuContact</a></li> <li><a href="@ViewBag.ContactUrl" class="text-light text-decoration-none">@ViewBag.MenuContact</a></li>
*@
</ul> </ul>
</div> </div>

View File

@ -18,7 +18,6 @@
@ViewBag.MenuHome @ViewBag.MenuHome
</a> </a>
</li> </li>
@*
<li class="nav-item"> <li class="nav-item">
<a class="nav-link @(ViewBag.CurrentPage == "about" ? "active" : "")" <a class="nav-link @(ViewBag.CurrentPage == "about" ? "active" : "")"
href="@ViewBag.AboutUrl"> href="@ViewBag.AboutUrl">
@ -31,8 +30,6 @@
@ViewBag.MenuContact @ViewBag.MenuContact
</a> </a>
</li> </li>
*@
</ul> </ul>
<!-- Language Switcher --> <!-- Language Switcher -->
@ -58,13 +55,10 @@
</ul> </ul>
</div> </div>
@*
<!-- CTA Button --> <!-- CTA Button -->
<a href="#conversion-form" class="btn btn-primary btn-sm scroll-to-form hover-lift"> <a href="#conversion-form" class="btn btn-primary btn-sm scroll-to-form hover-lift">
@ViewBag.CtaButtonText @ViewBag.CtaButtonText
</a> </a>
*@ </div>
</div>
</div> </div>
</header> </header>