cloudflare

CloudFlare (Memberful) post requests from Java produce a 403 error

跟風遠走 提交于 2020-05-15 09:25:32
问题 I'm trying to authenticate users using Memberful from a Spring-Boot application. Per the Memberful documentation, the process is as follows: User logs in at the memberful URL ( https://YOURSITE.memberful.com/oauth?client_id=APPLICATION_IDENTIFIER&response_type=code ) User is redirected to my front end (Vue) with a code in the URL provided by Memberful. The code is passed to my back end server. Back end server sends a post request using RestTemplate.postForObject(...) from Spring to https:/

CloudFlare (Memberful) post requests from Java produce a 403 error

爱⌒轻易说出口 提交于 2020-05-15 09:25:09
问题 I'm trying to authenticate users using Memberful from a Spring-Boot application. Per the Memberful documentation, the process is as follows: User logs in at the memberful URL ( https://YOURSITE.memberful.com/oauth?client_id=APPLICATION_IDENTIFIER&response_type=code ) User is redirected to my front end (Vue) with a code in the URL provided by Memberful. The code is passed to my back end server. Back end server sends a post request using RestTemplate.postForObject(...) from Spring to https:/

request.remote_ip changing?

帅比萌擦擦* 提交于 2020-04-30 07:34:08
问题 I have a Rails app hosted in Heroku + CloudFlare. The problem is that the ip reported by request.remote_ip changes every now and then, even though my public ip stays the same. Could it be Heroku, CloudFlare, or both? 回答1: You have to use the x-forwarded-for header, both Heroku and CloudFlare should set this. Docs: CloudFlare Heroku 回答2: When Cloudflare is operating as a reverse proxy, it sets this http header: CF-Connecting-IP and also appends the client's IP to the X-Forwarded-For header.

Digital Ocean, Node.js, Nginx and Cloudflare (400 badrequest No required SSL certificate was sent)

橙三吉。 提交于 2020-04-16 05:47:08
问题 I am getting a 400 Bad Request error. Sometimes it works, sometimes it doesn't. On the phone it seems to work more often than not. I am not sure what the deal is but it is quite irritating. server { listen 80; listen [::]:80; server_name url url; return 301 https://$host$request_uri; } server { # SSL configuration listen 443 ssl http2; listen [::]:443 ssl http2; server_name url url; ssl on; ssl_certificate /etc/ssl/certs/cert.pem; ssl_certificate_key /etc/ssl/private/key.pem; ssl_client

用全站 CDN 部署 Discourse 论坛

心已入冬 提交于 2020-04-08 14:56:58
Discourse 介绍 Discourse 是一款由 Stack Overflow 的联合创始人——Jeff Atwood,基于 Ruby on Rails 开发的开源论坛。相较于传统论坛,Discourse 从他全面开放的开源态度、简介明了的页面风格到其特有的内容运作体系都在证明自己是一款为下一个 10 年的互联网而设计的产品。现在,诸如 Car Talk 等国外知名产品都采用 Discourse 为论坛方案。 作为一个开源的论坛项目,Discourse 相对其他的论坛有以下亮点: 高度可定制 :从发帖等级要求权限到论坛帖子标题最少字数要求,Discourse 在论坛设置里罗列了 25 设置大项,300+ 个论坛小项,即使大家都使用 Discourse 搭建论坛但是每个用 Discourse 搭建的论坛都有自己的风格。 插件 :Discourse 官方及 Discourse 开源社区用户开发了丰富的插件可供使用,比如:个性化导航、自定义论坛封面。 集成 :可接入第三方产品,Google Analytics、 Slack、Wordpress 都在支持之列。 免费 :虽然 Discourse 有 $100/Month 的托管服务,但是你可以完全自行部署免费使用 Discourse 服务。 其他:Discourse 还有其他许多的好处,举个例子,它提供了一个机器人 Discobot

Can't read data from url due to cloudflare

主宰稳场 提交于 2020-03-15 05:59:49
问题 Whenever I compile, i get this: Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: the link at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.URL.openStream(Unknown Source) at readdata.aaa.main(aaa.java:15) My script is: package readdata; import java.net.*; import java.io.*; import java.util.regex.Pattern; import java.util.regex

Can't read data from url due to cloudflare

送分小仙女□ 提交于 2020-03-15 05:59:32
问题 Whenever I compile, i get this: Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: the link at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.URL.openStream(Unknown Source) at readdata.aaa.main(aaa.java:15) My script is: package readdata; import java.net.*; import java.io.*; import java.util.regex.Pattern; import java.util.regex

基于 Hexo 的 GitHub Pages 配置 CloudFlare CDN

可紊 提交于 2020-02-04 12:27:18
1.概述 由于 GitHub Pages 在国外,而且有时候因为图片过多等原因,静态博客页面在国内访问速度可能会非常慢,我们可以用 CDN 来加速,发现 CloudFlare 免费版没有流量限制,而且配置起来非常简单,所以在此选用 CloudFlare CDN 来加速页面访问。 参考博客(七夏浅笑) https://www.julydate.com/post/60859300/ 2.准备 域名 CloudFlare 账号 github_username.github.io 静态博客 3.流程 在 Hexo 博客 source 文件夹新建名为 CNAME 的文件,内容为个人域名(如果之前已经绑定过自己的域名可以忽略); 进入 CloudFlare 控制台,点击添加站点,输入个人域名,根据向导进行操作; 在 CloudFlare DNS 配置页面配置两个 CNAME 均指向 github_username.github.io 地址: 1) 根域名(@) CNAME 到 github_username.github.io 2)子域名(www) CNAME 到 github_username.github.io 将个人域名的 NS 记录修改为 CloudFlare 的 NS; 等 CloudFlare DNS 解析生效后,并且 CloudFlare 站点状态为 Active 即表示配置生效

$_POST is empty when axios send POST request CORS

纵然是瞬间 提交于 2020-01-26 03:57:06
问题 When I send POST request with json data in React app to PHP server, $_POST is empty. And also php://input doesn't work. I tried with following code. PHP server side: if($_SERVER['REQUEST_METHOD'] == "OPTIONS") { header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: POST, GET, OPTIONS'); header('Access-Control-Allow-Headers: Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization'); header('Access-Control-Max-Age: 1000'); header("Content

Cloudflare Origin Certificate with Google App Engine

不想你离开。 提交于 2020-01-23 12:29:08
问题 Cloudflare recently released origin certs. I can generate one for my domain but am not able to upload it to app engine. After getting the cert and key from cloudflare, I have to run openssl rsa -in old -out new on the key to convert it to an RSA key. Using this key and the cert, app engine shows the following error: The SSL certificate provided could not be inserted. With no additional information it's difficult to know what's going on here. 回答1: CloudFlare PM here for Origin CA. A few