I hereby claim:
- I am puzan on github.
- I am puzan (https://keybase.io/puzan) on keybase.
- I have a public key ASBa0PXrIHGIUrppxFnD0WsEpnrVWvQJ4yGMVS6s8WBkrgo
To claim this, I am signing this object:
apt-get install -y nginx libnginx-mod-http-headers-more-filter |
server { | |
listen 80; | |
server_name www.read.puzan.info read.puzan.info; | |
location / { | |
# Rewrite destination header if it starts with https | |
set $destination $http_destination; | |
if ($destination ~ ^https://(.+)) { | |
set $destination http://$1; | |
more_set_input_headers "Destination: $destination"; |
read_1 | 172.21.0.7 - puzan [18/Jun/2020:20:49:46 +0000] "PROPFIND /current/ HTTP/1.1" 207 2657 "-" "GoodReader" | |
read_1 | 172.21.0.7 - puzan [18/Jun/2020:20:49:46 +0000] "PUT /current/temp1 HTTP/1.1" 201 0 "-" "GoodReader" | |
read_1 | 2020/06/18 20:49:46 [error] 6#6: *7 client sent invalid "Destination" header: "https://read.puzan.info/current/some_book.pdf", client: 172.21.0.7, server: www.read.puzan.info, request: "MOVE /current/temp1 HTTP/1.1", host: "read.puzan.info" | |
read_1 | 172.21.0.7 - puzan [18/Jun/2020:20:49:46 +0000] "MOVE /current/temp1 HTTP/1.1" 400 173 "-" "GoodReader" |
services: | |
gitea: | |
image: gitea/gitea:1.11 | |
labels: | |
SERVICE_3000_NAME: gitea | |
SERVICE_3000_CHECK_HTTP: /api/v1/version | |
SERVICE_3000_CHECK_INTERVAL: 15s | |
SERVICE_3000_TAGS: urlprefix-gitea.puzan.info:443/ | |
SERVICE_22_NAME: gitea-ssh | |
SERVICE_22_CHECK_TCP: true |
FROM rabbitmq:3.7-management-alpine | |
COPY rabbitmq.config /etc/rabbitmq/ | |
RUN rabbitmq-plugins enable --offline rabbitmq_shovel rabbitmq_shovel_management rabbitmq_federation rabbitmq_federation_management | |
EXPOSE 25672 |
'use strict' | |
const path = require('path') | |
const Pact = require('pact') | |
const getMeDogs = require('../index').getMeDogs | |
describe("Dog's API", () => { | |
let url = 'http://localhost' | |
const port = 8989 |
I hereby claim:
To claim this, I am signing this object: