https://discord.umbraco.com
Join Discord
Umbraco and Azure deployment slots
l

Luuk Peters (Proud Nerds)

about 1 year ago
Hi all, We're running multiple Umbraco 13 sites, but some sites take quite some time to boot. We've optimized as much as possible (like UsePagedSql to false, production runtime mode etc), but the NuCache takes some time to load on these larger sites in combination with our custom logic. I know Umbraco 15 will probably be a lot faster, but we want to use deployment slots for web apps in Azure to minimize downtime. By itself, deployment slots are not hard to understand, but the issue I'm having is that I'm uncertain what to do with the database. We're using SQL Databases in Azure and they are not part of the deployment slot. Umbraco or Umbraco form updates run migrations on the database that could potentially break the old Umbraco version that running in the active deployment slot. So in that case there is still downtime, which defeats the point of deployment slots. Anyone has experience with this in combination with Umbraco? Or with deployment slots in Azure in combination with databases in general? Thanks in advance!
l
k
+5
  • 7
  • 24
  • 240
CORS error when trying to fetch media in umbraco 14
r

Reini

about 1 year ago
I am currently trying to load vtt files for video subtitles from umbraco media section in our frontend. We use an NextJs Frontend, so the domain of the frontend is not the same as the Umbraco instance. I now get cors errors when i try to load the vtt files. the images and videos are loaded without a problem. Did anyone else have the same problem?
r
j
+2
  • 4
  • 11
  • 237
Running multi-site locally
t

TigerMan

over 1 year ago
Hi all I have setup two sites under one Umbraco 13. I can get to one site but not the other so I setup the culture and host as below Site 1 - http://localhost:1234 Site 2 - http://localhost:1234/siteTwo This works and I'm able to get to the second site. Is the only way to have these working for two separate domains is if I had two domains as Site 1 - http://domainOne Site 1 - http://domaintwo Is by setting up IIS on my machine? So I can't do this using IIS express (that comes with Visual Studio)?
t
k
+4
  • 6
  • 18
  • 236
Element Type vs Composition
j

Jamie T

about 2 years ago
When creating a doctype you get the options element type and composition, is there any difference under the hood? I am creating some compositions inside a migration so just wondering if there is anything else to consider. I've checked the database and both seem to be created the same just with a different default icon? Thanks ❤️
j
c
  • 2
  • 7
  • 233
Umbraco 13 custom "member" provider. Is it possible?
k

kdx-perbol

almost 2 years ago
We have an existing user database that we would like to use as a "Member" provider in Umbraco. We don't even want Members to appear in Umbraco, we want the whole membership system to be outsourced to our existing database. Is this possible? From searching and documentation, I can only find information on "external authentication providers" but they still use the Umbraco membership system and the Umbraco member database. For example, I want to restrict access to pages to a Member group, using Umbraco "restrict public access" functionality, but I want the logic for authorization and authentication to use our existing user database. I don't want to create Members in Umbraco, I want the access check to use our existing user database.
k
l
  • 2
  • 3
  • 227
How to Opt-Out Serilog and Use Azure Monitor OpenTelemetry instead?
k

Khattab

10 months ago
I want to see Umbraco application's logs in Application Insights. I'm using the following packages: Azure.Monitor.OpenTelemetry.AspNetCore Serilog.Sinks.OpenTelemetry
builder.Services.AddOpenTelemetry().UseAzureMonitor()
The issue is with the app inights Serilog Sink I am loosing a lot of telemetry and I have my whole setup built arounf OTEL standards and OTEL exporters, which Azure monitor provides, and with Serilog I think it kills all exporters, On my custom dotnet application I used Serilog flag
writeToProviders
so I'd have both logger in action, but for Umbraco I do not know what is the best way to do so
services.AddSerilog((loggerConfiguration) =>
 {
     loggerConfiguration.MinimalConfiguration(configuration)
                        .ReadFrom.Configuration(configuration);
 }, writeToProviders: true);
k
  • 1
  • 1
  • 224
Run middleware just before output is sent to the browser
s

skttl

over 1 year ago
I'm trying to add some middleware to search and replace specific things in the html output of a page. I've made the middleware for this, but I can't figure out how to register it correctly. I've tried registering like mentioned in https://docs.umbraco.com/umbraco-cms/reference/routing/custom-middleware using the PostPipeline. But when I debug things, the middleware is hit before my controller endpoint is hit. Is there some way I can change the order?
s
m
+4
  • 6
  • 8
  • 223
[Solved] UmbracoApplicationUrl
o

Owain Jones

about 2 years ago
After reading the 24 days article https://24days.in/umbraco-cms/2023/runtime-modes/, I decided to go through our client environments and implement the runtime modes, which necessitates setting the `UmbracoApplicationUrl `app setting. But I have a question, if I have a load balanced setup (1 backoffice edit app which is locked behind Azure AD, and 2 public frontend apps which sit under Azure Application Gateway), what URL do I set `UmbracoApplicationUrl `to? Would it be the public domain, or the domain of the backoffice edit app? (Note: /Umbraco is redirected to a 404 on the public domain)
o
k
m
  • 3
  • 5
  • 219
Umbraco 13 backoffice authentication in frontend
c

Chris Bass

over 1 year ago
This is obviously not ideal, but I'm working with a situation where, rather than building out a whole Angular UI for a backoffice custom page, we're looking into just using an existing .net core set of controller/view/model code to render a custom page. This page should only be accessible to users who are authenticated in backoffice, but since there's no way to 'inject' a standard model/view/controller action into the backoffice UI, we're thinking we just put it on the frontend, but in the action verify that the user is logged in and has the proper Group in the backend. In Umbraco 9, I see references to people doing things like this: https://our.umbraco.com/forum/umbraco-9/106857-how-do-i-determine-if-a-backoffice-user-is-logged-in-from-a-razor-view#comment-334423 They seem to be manually checking the cookies. I believe you'd have to be on a route of /umbraco/backoffice/* in order to see those? Not sure. In any case, the question is: To do the above, what changes in Umbraco 13? https://github.com/umbraco-community/Our-Umbraco-TagHelpers/blob/dee84a4726e3db60b77fb0187a76f8ec0c86e003/Our.Umbraco.TagHelpers/Services/BackofficeUserAccessor.cs There's even a Tag Helper written for Umbraco 9 that does almost what I want (I want to gate the entire Action, not just a part of it), I just need to understand what's different for 13, or if there's a better way to do this.
c
j
  • 2
  • 5
  • 217
Backoffice session timed out.
s

Sam

almost 2 years ago
Hey, I've recently upgraded one of our clients sites from umbraco 8.13.1 all the way to 13.0.1 - after some struggling I've managed to sort it out. BUT I've recently discovered that when I log into the backoffice I keep getting "Session timed out." not even 60 seconds after I've logged in. I've tried setting up the TimeOut value in appsettings.json to a multiple different values without any success. I've scoured the internet and I cannot find anything that seems to resolve this issue for me. Is there anyone who've encountered this problem and if so how did you resolve it?
s
s
p
  • 3
  • 3
  • 217
Previous101112Next

Umbraco

A hub and casual space for you to interact with fellow community members and learn more about Umbraco!

Powered by