People who code: we want your input. Take the Survey

Hot answers tagged

6

Websockets don't really have any handling for this per se. You could build your own system but generally the idea for HA is that if anything happens you'll set the client up to automatically reconnect. There will be some non-zero downtime during a blue-green swap but if your app is well built it should handle that already. If you wanted something more ...


5

With a minimally engineered server code (a Google AppEngine application in the example) it's possible to duplicate and forward incoming HTTP traffic received by a production server to a test server (or vice-versa) for the purpose of comparing their responses. See https://stackoverflow.com/questions/38799566/can-i-asynchronously-duplicate-a-webapp2-...


2

Given that this is symptomatic of rate limiting in Nginx in this case, the solution is to configure the rate limiting feature of Nginx to allow this A whitelist could be created in the configuration to remove ratelimiting from the url generating the traffic. To follow the Nginx documentation, this could be specified as whitelisting an IP. The current ...


2

One possibility is mounting the bucket as s3fs and serving the root folder as usually done by Nginx.


2

Download - yes. Simply set each Object ACL to be publicly readable. List - sort of. If you set the Bucket ACL to publicly readable anyone can list the content. However it's a rather human-unfriendly XML listing. You can generate your directory listings to some index.html files through an external process and configure the bucket to serve those. Basic auth -...


1

There are two main reasons for this issue to happen: Your dns are not exposed. Your code is redirecting to a https address (and since you are working in your local machine, most likely you don't have a secure certificate) CASE 1 - Exposing DNS On linux you can solve it like: minikube ip vim /etc/hosts Add the ip from the first step and the hostname you ...


1

created with: docker run -d -p 80:8080 -p 443:8443 jetty gives a start page as: Error 404 - Not Found. No context on this server matched or handled this request. Contexts known to this server are: Context Path Display Name Status LifeCycle __________________________________________________________________ [1]icon [2]Powered by Eclipse ...


1

Have you considered CDNjs.com: It supports CORS headers, it is dedicated to JavaScript after all. It supports HTTP/2 as well as SPDY. The cache duration is 355 days, which is probably plenty long enough. Cloudflare is used as the CDN, they provide it to cdnjs.org for free. Adding your library is a bit more than a one-liner unfortunately as you need to ...


1

In addition to Mlu answer, you can put Cloud front in front of the bucket and implement basic auth and probably listing/sorting with a Lambda@edge function.


1

If the repo is on AWS Codecommit, you should be able to access it via a role setup for each type of instance. See under IAM role here https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control.html


1

Another option is to use saltstack's product: salt This Configuration Management System (CMS) can protect sensitive data in three ways. 1) Pillars; these are securely stored and encrypted key:value or key:list dictionaries stored on your primary computer(s) that you manage the entire cluster from. This will allow you to create salt scripts that can have ...


1

Option 1: You could place your private repo in the same VPC as the instance and then pull code from there. Just make sure the repo cannot be accessed from outside the VPC. Option 2: Ssh into the new instance and SCP the binary over. Option 3: Use docker and deploy a private container registry (e.g. Amazon ECR). Build the image on your machine / build ...


1

One could replace rewrite /(.*) /ipns/QmdpoFuwY/$1 break; with rewrite ^(.*[^/]) /ipns/QmdpoFuwY/$1 break; and try again. The issue was solved by inspecting the logs. If for example one navigated to /foo/ instead of /foo/ the log indicated: 2017/10/15 14:51:28 [error] 7#7: *1 "/etc/nginx/html/index.html/foo.html" is not found (20: Not a directory) It ...


Only top voted, non community-wiki answers of a minimum length are eligible