localhost

How to trust self-signed localhost certificates on Linux Chrome and Firefox

扶醉桌前 提交于 2019-12-03 03:19:51
问题 I try to generate a self-signed certificate for a custom local domain pointing to 127.0.0.1: # /etc/hosts 127.0.0.1 subdomain.domain.local I've generated a self-signed certificate using openssl and remember that everything worked in the past. But it seems that since Chrome 58, there are far more restrictions on using self-signed certificates. My attempts conclude with " Your connection is not private " following with one of the below errors: " security certificate is not trusted " if I

GitLab CI runner can't connect to unix:///var/run/docker.sock in kubernetes

匿名 (未验证) 提交于 2019-12-03 03:05:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: GitLab's running in kubernetes cluster. Runner can't build docker image with build artifacts. I've already tried several approaches to fix this, but no luck. Here are some configs snippets: .gitlab-ci.yml image: docker:latest services: - docker:dind variables: DOCKER_DRIVER: overlay stages: - build - package - deploy maven-build: image: maven:3-jdk-8 stage: build script: "mvn package -B --settings settings.xml" artifacts: paths: - target/*.jar docker-build: stage: package script: - docker build -t gitlab.my.com/group/app . - docker login -u

Error 111 connecting to localhost:6379. Connection refused. Django Heroku

匿名 (未验证) 提交于 2019-12-03 03:05:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am able to run redis locally and everything works. However when I deploy to heroku I get this error: Error 111 connecting to localhost:6379. Connection refused. I have set up a Procfile with... web: gunicorn odb.wsgi --log-file - worker: python worker.py I have a worker.py file... import os import urlparse from redis import Redis from rq import Worker, Queue, Connection listen = ['high', 'default', 'low'] redis_url = os.getenv('REDISTOGO_URL') if not redis_url: raise RuntimeError('Set up Redis To Go first.') urlparse.uses_netloc.append(

Is it possible for Oracle sqlldr to accept a TNS entry as an instance qualifier in Oracle 10 and 11?

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible to use a fully qualified TNS entry using sqlldr bundled with Oracle 10/11? For example, in SQLPlus: sqlplus user/password@(description=(address=(host=localhost)(protocol=tcp)(port=1521))(connect_data=(sid=orcl))) @script.sql But using sqlldr (SQL Loader) there appear to be issues with using the TNS entry directly. Specifically: sqlldr user/password@(description=(address=(host=localhost)(protocol=tcp)(port=1521))(connect_data=(sid=orcl))) bad='bad_file.txt' control='control.ctl' data='data.txt' log='log.txt' direct='true' Here

Html5 audio return error MEDIA_ERR_SRC_NOT_SUPPORTED after 6 audio loaded in IE

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i need to load near 20 sounds on my page. i thought maybe i need to load only 2 element separately so that's why you will see inProgress property loadAudio: function () { if (this.inProgress <= 1) { this.inProgress++; var elem = this.audioQueue.pop(); if (elem != null) { var path = elem.Path + elem.Fileid + ((this.canPlayMp3) ? '.mp3' : '.wav'); audio = new Audio(); audio.src = "http://localhost:55578/~/x.mp3"; audio.addEventListener('loadedmetadata', function (e) { AudioPlayer.audioLoaded(e); }, false); //audio.addEventListener('loadeddata'

WCF Service Base Address Http and netTcp

匿名 (未验证) 提交于 2019-12-03 02:51:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have two base addresses defined in my WCF Service config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="Warning, ActivityTracing" propagateActivity="true"> <listeners> <add type="System.Diagnostics.DefaultTraceListener" name="Default"> <filter type="" /> </add> <add name="ServiceModelTraceListener"> <filter type="" /> </add> </listeners> </source> </sources> <sharedListeners> <add initializeData="C:\WCF Service Logs\app_tracelog.svclog" type=

Ajax Post: 405 Method Not Allowed

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Within my API Controller called Payment, I have the following method: [HttpPost] public HttpResponseMessage Charge(Payment payment) { var processedPayment = _paymentProcessor.Charge(payment); var response = Request.CreateResponse(processedPayment.Status != "PAID" ? HttpStatusCode.ExpectationFailed : HttpStatusCode.OK, processedPayment); return response; } In my HTML page I have: $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "http://localhost:65396/api/payment/charge", data: $('#addPayment').serialize(), dataType

IISExpress cannot find ssl page running localhost with Visual Studio 2013

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I access the site as http://localhost:26049 , the site runs fine. If I try to access the site with https://localhost:44319 , I get page not found. This is my project properties: This is from my IISExpress application config: <site name = "MVC Authentication" id = "2" > <application path = "/" applicationPool = "Clr4IntegratedAppPool" > <virtualDirectory path = "/" physicalPath = "F:\Projects\MySite\Test" /> </application> <bindings> <binding protocol = "https" bindingInformation = "*:44319:localhost" /> <binding protocol = "http"

Rewrite rule to HTTPS except when on localhost

匿名 (未验证) 提交于 2019-12-03 02:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using the answer given here as the basis for trying to add a rewrite rule to my web.config file. I want it to match any url that is not running on localhost in order to force https. Here is what I have right now: <system.webServer> <rewrite> <!-- force https - https://stackoverflow.com/a/15119044/51 --> <rules> <rule name="Redirect HTTP to HTTPS" stopProcessing="true"> <match url="^((?!localhost).)*$"/> <conditions> <add input="{HTTPS}" pattern="^OFF$"/> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType=

configure node express to serve static bower_components?

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a directory structure projectName | - bower_components/ | - public/ | - css | - js | - index.html | - Gruntfile.js | - package.json | - bower.json | - app.js I would like to start my app and serve index.html with node. So in app.js I have: var express = require('express'); var port = process.env.PORT || 3000; var app = express(); app.configure(function(){ // Serve up content from public directory app.use(express.static(__dirname + '/public')); app.use(app.router); app.use(express.logger()); }); app.listen(port, function(){ console.log