How can i display a webpage that is on a different domain on a tab in gocd - go-cd

Is there a plugin or any other way to display an external webpage in a tab in go-cd. Our test results are hosted on a different domain and i would like to show it in gocd.

Is this something similar to what you are looking for: https://docs.go.cd/current/configuration/dev_upload_test_report.html#uploading-a-flash-video-and-displaying-it-as-a-sub-tab
It should be easy to add if you can get the external webpage source as an artifact!

Related

How to host multiple reactJs web app under one domain in amplify?

I've 2 different reactJs applications which can be deployed independently to aws-amplify. Is there a way I can configure them to the different context paths of the same domain?
www.mydomain.com/app1
www.mydomain.com/app2
Is it possible using amplify?
Right now there is no way to deploy multiple projects with different subdirectories on the same domain using different amplify projects.
But there is a way to deploy multiple projects under the same domain name in a single amplify project instance. If your project is using a monorepo style of structuring the projects. You can read more about it here .
The closest thing I've figured out is adding subdomains before
Let me know if you figure this out because I'm trying to do the same thing
I'll keep you posted as well
Amplify documentation says you can use "200 redirects" (or "Reverse proxy rewrite") to deal with this issue.
cf. https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html
I quote :
Rewrite (200)
200 redirects (rewrites) are intended to show content from the
destination address as if it were served from the original address.
Search engine ranking history continues to apply to the original
address. Redirection occurs on the server-side, so a browser
navigation bar shows the original address after redirection.
So you may want to create 2 redirect rules :
/app1/<*> https://app1.mydomain.com/<*> 200
/app2/<*> https://app2.mydomain.com/<*> 200
(choose any domain/subdomain you want for your app1 and app2)

In Superset, the URLs for sharing are generated with "127.0.0.1:8088" instead of the actual domain, except the "Share Query" button in SQL Lab

In Superset, there are several places where it's possible to share something: a chart, a dashboard, a specific section in a dashboard, etc.
Except the "Share Query" button in SQL Lab that works fine (i.e. generates a working URL with the actual domain) the other places where it's possible to generate a share URL are not working well for me (Superset version 0.35.2): in fact, the generated URLs are like http://127.0.0.1:80800/r/123
How can I have them working well as the "Share Query" button in SQL Lab?
(Also temporary hacks by modifying some file on the server would be a good solution at the moment).
Solved, the problem was the Host header not set by NGINX (used as reverse-proxy) when receiving the requests.

Spark/Yarn UI views all use dns name not IP:port name, any way to change?

So, through the spark resource manager, all of the links to different applications, logs, etc all use DNS name
ip-xx-xx-xx-xx.company.com:20888/proxy/application_11111 for example
I must manually copy this and cange it to xx.xx.xx.xx:20888/proxy/application_11111 to view this webpage. Is it possible to get the original link working or change all of the links to xx.xx.xx.xx:20888... format?

Ionic 2 - Open external pdf inside my app

I have some pdf file links on my app, and I wanna the user be able to open/read then inside my app. Is it possible? Is there any easy way to do that? Thanks!
EDIT:
Until now, I'm using regular link, like this:
<a href="{{conta.link_conta}}" *ngIf="conta.link_conta">
But in that case, it opens on the external browser (chrome for android, in my test). I would like to open it inside my own app, kinda like facebook, instagram, twitter and some other apps do
Didn't try it, but can't you use InAppBrowser plugin
https://github.com/apache/cordova-plugin-inappbrowser
Set the target as '_self',

Sitecore - Handle 500 errors separately per site in multisite setup

We're running Sitecore in a multi-site configuration and currently have custom 404 pages for each of our sites.
What we would also like is to have custom 500 pages for each site. I haven't found much on how that works (if it does) in Sitecore, and was hoping the community had some insight into how to set up custom 500 pages in a multi-site Sitecore setup. Currently, we have one 500 page the two sites share. This is fine in development, but in production we don't want to expose the fact that these sites share the same box.
Well as per my knowledge, what you can do is you can directly set a URL to be executed (.i.e. it goes to your common Custom Error Page), where you decide the site-specific error details to be shown.
Considering that you are using IIS 7.0 or 7.5, please follow the steps as below:
Open IIS Manager
Go to your Site, in the Sites Section.
Click on Error Pages in the IIS Section.
Next, you will move to the Error pages set by IIS. Go to Error code 500, select it and click on Edit in Actions Pane.
Now select the option of Execute a URL and select a common page, say /sitecore/MyErrorPage/500ErrorPage.aspx and then, handle site-specific error messages in that particular page.
Hope this Helps!
Regards,
Varun Shringarpure
A 500 error is a server error so Sitecore can't process it. It should be a generic flat HTML file configured is IIS or the web.config
You can override the processor "Sitecore.Pipelines.HttpRequest.ExecuteRequest, Sitecore.Kernel" to handle Sitecore error like item not found, layout not found etc. See more details here: http://www.sitecore.net/Community/Technical-Blogs/John-West-Sitecore-Blog/Posts/2013/04/Handling-Errors-in-the-Sitecore-ASPNET-CMS.aspx
But when handling 500 errors you should do it outside of Sitecore, think about what happens if you serve your 500 error page in Sitecore but Sitecore is down due to for example sql connection issues or timeouts? Your users will end I a redirect loop.
Take a look at the Error Module on the marketplace. I think it will give you want you want.