jelastic

Websockets in Jelastic: DeploymentException: The HTTP response from the server did not permit the HTTP upgrade to WebSocket

最后都变了- 提交于 2021-01-28 12:09:58
问题 I'm trying to play with websockets, so I created WS server like that: @ServerEndpoint(value = "/chat") public class WsChatServlet{ private static final Logger LOGGER = Logger.getLogger(WsChatServlet.class.getName()); @OnOpen public void onOpen(Session session) { LOGGER.log(Level.INFO, "New connection with client: {0}", session.getId()); } @OnMessage public String onMessage(String message, Session session) { LOGGER.log(Level.INFO, "New message from Client [{0}]: {1}", new Object[] {session

“no-referrer-when-downgrade error” Angular app on Firebase connecting to NGINX Jelastic

 ̄綄美尐妖づ 提交于 2020-03-05 06:07:03
问题 I have the following architecture: An Angular webapp hosted on Google Firebase (HTTPS) A jelastic environment with: An NGINX server (HTTPS) A Springboot 2 application server (HTTP) In order to work fine Firebase needs to use HTTPS API, so I added to the NGINX server an SSL certificate and a public IP. If I call the API using HTTP from postman the calls work fine. But if I call the API HTTPS from the Angular app in firebase than it doesn't work and I get this error: "Referrer Policy: no

“no-referrer-when-downgrade error” Angular app on Firebase connecting to NGINX Jelastic

北慕城南 提交于 2020-03-05 06:05:16
问题 I have the following architecture: An Angular webapp hosted on Google Firebase (HTTPS) A jelastic environment with: An NGINX server (HTTPS) A Springboot 2 application server (HTTP) In order to work fine Firebase needs to use HTTPS API, so I added to the NGINX server an SSL certificate and a public IP. If I call the API using HTTP from postman the calls work fine. But if I call the API HTTPS from the Angular app in firebase than it doesn't work and I get this error: "Referrer Policy: no

Jelastic - using private repository in JPS

删除回忆录丶 提交于 2020-01-16 14:20:27
问题 Is there a way to use private docker repository images when launching a new environment using jps? From marketplace, i can add docker containers from private repository and launch them, no problem there. But even when the image has been added to the marketplace, the new environment launched using jps, cannot find the image... "adding privateRepo/image:latest node to env-xxxx | Image not found. Please double-check your entries" [edit] Below is a simple example JPS to start from... The karppo

How to deploy Spring Boot application with PostgreSQL on the cloud Jelastic?

独自空忆成欢 提交于 2019-12-25 09:06:48
问题 I have a simple Spring Boot application with Angular JS web-client and PostgreSQL database. At this point I can create JAR or WAR for my app by Maven. Also I have a valid dump of my Postgres data. Could someone please give me some roadmap how I can successfully host my application and data on Jelastic? 回答1: First of all my Jelastic provider has a great support so they helped a lot. The first part is to deploy the application (or you might start with copying of your Postgres data. This gives

Cann't get file from classpath (using NIO2)

走远了吗. 提交于 2019-12-25 02:53:57
问题 I want to create a String from the content of the file. According this answer I do it in this way: private static String buildStringFromTemplate(String stringTemplatePath) throws IOException { byte[] encoded = Files.readAllBytes(Paths.get(stringTemplatePath)); return new String(encoded, "UTF-8"); } (As I understand this is a path of new NIO2 API, that is a part of Java 7.) stringTemplatePath parameter is a name of the file ( "template.html" ). I check location of this file. It is in the

How do I disable ingress from the internet to Jelastic nodes?

女生的网名这么多〃 提交于 2019-12-24 05:13:04
问题 By default every resource created in Jelastic gets a dns entry and is accessible from the internet. For a lot of services such as databases I don't want this behavior. It seems quite insecure that this is the default behavior. I only want to access those things from my other services in my environment or through ssh. I can't find any documentation on this. How do I disable the default dns mapping and ingress firewall rules from the internet to my Jelastic resources while still allowing access

Connection refused with Tomcat 7

夙愿已清 提交于 2019-12-23 18:18:15
问题 I have a Tomcat instance running on Jelastic and there are two deployed apps - for '/foo' context and for '/bar' context. During handling request to '/foo' we do a HTTP request to '/bar' (for authorization) and there is always an exception here - ConnectException: ConnectionRefused. If I connect to '/bar' through browser or from code running on my local PC everything works perfectly. Also if I connect from server (during handling a request to '/foo') to a host located in the different place

NGINX configuration for Rails 5 ActionCable with puma

对着背影说爱祢 提交于 2019-12-18 12:18:58
问题 I am using Jelastic for my development environment (not yet in production). My application is running with Unicorn but I discovered websockets with ActionCable and integrated it in my application. Everything is working fine in local, but when deploying to my Jelastic environment (with the default NGINX/Unicorn configuration), I am getting this message in my javascript console and I see nothing in my access log WebSocket connection to 'ws://dev.myapp.com:8080/' failed: WebSocket is closed

Docker container, local networking in Jelastic

旧城冷巷雨未停 提交于 2019-12-11 15:53:51
问题 I want to install collabora Online with NextCloud, in some Jelastic environment. Set up NextCloud was a peace of cake, I just pic the right docker image, access the public given url and voila. Now I can't make the Collabora Online server to work. In a regular dedicated server, I run docker run -t -d -p 9980:9980 -e "extra_params=--o:ssl.enable=false" collabora/code And I can access Collabora Server with http://ip-add:9980 I added a public IP to the node of the Collabora docker image. If I run