Closed anhlee97 closed 5 months ago
Please help !
@maliming please help
but some resource in Theme not work correct .
Please share the error info.
@maliming. My goal is deploy my app to nginx proxy subpath. i try use Base Path
but some resource in Lepton Theme css, js is not in base path
Can you try to move the UsePathBase
before the UseStaticFiles
i tried by still error
Please share a simple project on GitHub.
you can view here: https://github.com/anhlee97/AbpNginx.git
@maliming
It works on my local.
var rootPath = "/customer/admin";
app.UsePathBase(new PathString(rootPath));
app.UseStaticFiles();
Thanks @maliming. It's work. but i have another problem when login.
it return /customer/admin but don't have cookie
Please check your logs and browser console to see the cookies.
this is my log. and my cookie
i try set: RootUrl. it work for login but when i access identity management module it say You are not authenticated! You should sign in to perform this operation.
@maliming please help !!!
Please check your app logs.
HI @maliming , I resolved this problem but i have another. i try create subfolder. but it not working
hi
Can you run the abp install-libs
command to create the js libs?
Yeah. Thank you ! This is my stupid. I forgot when ci/cd. @maliming So help me another issue.
In my case: i want use app.UsePathBase(new PathString(AdminConst.RootPath)); abp.js : not change appPath . var abp = abp || {}; (function () { /* Application paths *****/ //Current application root path (including virtual directory if exists). abp.appPath = abp.appPath || '/'; }
Is there an existing article or article request for this?
Describe the article you'd like
I am trying to configure asp.net core application to use Lepton X lite theme to deploy on k8s infrastructure with https://localhost:5000/admin/ instead of https://localhost:5000/.
i try UseBasePath. i work for endpoint but some resource in Theme not work correct .