Hello,
for deployement, i need to install my app/server within a LAN and use it on both LAN and WAN with distinct URLs.
i need to be accessed by LAN, which i does by
appconfig.json (client abp) :
"remoteServiceBaseUrl": "http://server:41010",
"appBaseUrl": "http://server",
appsettings.json (backend)
"ServerRootAddress": "http://server:41010/",
"ClientRootAddress": "http://server/",
"CorsOrigins": "http://server",
that works fine.
Next step is to also allow the application to be accessible via WAN.
The required url is something like that : "http://server.xxx.xxxx.xx" And that's where i'm blocked.
the "appBaseUrl" defined is used by CORS on server to validate the request. I either can put the "http://server" or "http://server.xxx.xxxx.xx" but not both of them.
Do you have any idea how i can resolve that ?
knowing that ... :
the only possibility that I see is to duplicate the client/frontend in 2 separate sites, and create virtual folders on IIS to keep the same port. It seems a little bit complex.
So, my question is : can we use multiple client URL "appBaseUrl") : "http://server" "http://server.xxx.xxxx.xx" in a single frontend app configuration, and allowing these urls in CORSORIGINS in backend ?
nb : sorry if it's a silly question, i didn't found any related question in the forum.
thanks !
daws
I'm designing app service methods in my backend and I call them in angular through the generated service.proxies.
public class MyAppService : ApplicationService, IMyAppService
{
public MyMethod(MyInput input){
...
}
}
public class MyInput {
DateTime start;
DateTime end;
MyDto dto;
}
public class MyDto {
property1 {get; set;}
...
property20 {get; set;}
}
My issue is that, in the frontend, the dto class is split into each of its fields when generating the proxy with swagger :
myServiceproxy{
myMethod( DateTime start, DateTime end, property1, ..., property20 ) {
...
}
}
Can I generate it so that it doesn't split my DTO object ? Like this :
myServiceproxy{
myMethod( DateTime start, DateTime end, MyDto dto ) {
...
}
}
(To be more specific, one of the properties of MyDto is also a Dto. But both DTO classes are used extensively as is in the frontend)
I'm using ASP.NET zero 5.2, ASP.NET Core + Angular
Hello there !
note: this subject is not related to #817@a1b35b3f-8ba1-4fb2-b52e-551e1df08387
<ins>current status</ins> applications
localization sources
Code in the application when we can select the localization source to use:
export abstract class AppComponentBase {
//localizationSourceName = AppConsts.localization.defaultLocalizationSourceName;
localizationSourceName = 'App';
Question : for each application, i want to use multiple sources without specifing it in each displayed text:
because I use some translations from abp for common part (user panel, errors etc) and I want to avoid duplicate everything in my 'App' file.
I saw in the doc that by default this is only one source. Do you see any way to use both sources (maybe a little rewrite of localizationService) IF i care about not having duplicate keys in the list of my translation.
thanks for your help ;)
+1 for powerBI.
i've coupled it with ODATA
Hello everyone,
I'm looking to secure/licence/encrypt my software because it will be deployed on client side.
I want to prevent them to :
For the software utilisation, I was thinking about using an HASP key (sentinel dongle) which has to be plugged onto the server (usb port). There is also the fact that aspnetzero use his own "AbpZeroLicenseCode" mecanism to prevent unauthorized use of its code.
Has anyone has already thought about the use of HASP keys in the ABP environement ?
Or can we achieve the licensing with another way ? (a little bit more like "AbpZeroLicenseCode") Knowing that the client server can access in theory to internet, but could be disconnected for 2-3 days for example.
If you have any thoughts on how to prevent the execution of the software (HASP key, online licencing verification, ...) & where it's the best way to use it with abp framework; let me know ;)
thanks, daws
nevermind, case 2 works with :
"remoteServiceBaseUrl": "http://PRODUCTION-public-ip:5000", "appBaseUrl": "http://localhost:4200",
(+ port forwarding 4200 from router to my local pc)
I don't know why it wouldn't work the 1st time, that's will stay a mystery.
Subject closed :)
Dear support,
i've deployed successfully my app on production server (cf case 1 below) and works fine (intranet & internet).
Now (case 2), I try to launch the client (angular-cli on my VSCode) from outside the production server and use the remote Web.Host as backend. Goal is to allows me to develop some UI stuff with my production data.
I think it's only related to my network configuration but I want to make sure I didn't forgot anything on my settings.
<ins>Global details</ins>
<ins>Case 1 : everything (Web.Host and angular) on PRODUCTION server</ins>
Everything works fine as expected.
<ins>Angular</ins>
"remoteServiceBaseUrl": "http://PRODUCTION-public-ip:5000",
"appBaseUrl": "http://PRODUCTION-public-ip:4200",
<ins>Web.Host</ins>
"App": {
"ServerRootAddress": "http://PRODUCTION-public-ip:5000/",
"ClientRootAddress": "http://PRODUCTION-public-ip:4200",
"CorsOrigins": "http://PRODUCTION-public-ip:4200"
},
<ins>Case 2 : PRODUCTION Web.Host accessed from angular LOCAL</ins>
<ins>Details</ins>
<ins>Angular</ins>
"remoteServiceBaseUrl": "http://PRODUCTION-public-ip:5000",
"appBaseUrl": "http://LOCAL-public-ip:4200",
<ins>Web.Host</ins>
"App": {
"ServerRootAddress": "http://PRODUCTION-public-ip:5000/",
"ClientRootAddress": "http://LOCAL-public-ip:4200",
"CorsOrigins": "http://LOCAL-public-ip:4200"
},
with angular-CLI launched via differents parameters for test :
so, angularApp is accessible from intranet+internet but doesn't seems to communicate with the server correctly.
Do you see anything that i did wrong ?
Regards,
daws
Hello there,
Is it possible to include the whole app (AspNet zero 5.0 core+angular) on an iframe ? (meaning no restriction on your side) i suppose i'll need to adjust CORS permissions.
I made a quick test but it gave me a blank page, so i quick ask before modify everything :mrgreen:
thanks !
Thanks for your reply ;)
i'll think a little bit more about that; but I think it will be easier for me to maintain the ANZ MVC 5.X in my project for few more months, & try to migrate my whole app in angular2 in the same time.
it will save me/you some time :)
Hello there,
my current project is #3 ASP.NET MVC 5.x + ANGULARJS 1.x. i would like to go to #1 ASP.NET CORE + ANGULAR 4.x
but ... i've a custom angular app (another than the Dashboard) that will remains in angular 1.X for at least 2017.
i would like to know the possibility to use ASP.NET CORE + angular 4.X Dashboard + custom app angular 1.X.
knowing that this custom app uses permissions, features, AppService from backend.
Does JS interfaces with AppServices are the same in the latest project and old ?
or does all abp. services in JS are migrated to angular2 ? or maybe i can use the new abp. services for Dashboard; and the old one with angular 1.X; if the backend is still the same.
thanks for your help