Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 Error with Custom Port #59

Open
0x3639 opened this issue Dec 24, 2022 · 1 comment
Open

403 Error with Custom Port #59

0x3639 opened this issue Dec 24, 2022 · 1 comment

Comments

@0x3639
Copy link

0x3639 commented Dec 24, 2022

Thank you for this nice project. I've setup a custom .conf file to forward port 35997 over SSL to a back end server

here is the docker-compose.yml file:

version: '2'

services:
  nginx:
    image: valian/docker-nginx-auto-ssl
    container_name: nginx
    restart: on-failure
    ports:
      - 80:80
      - 443:443
      - 35997:35997
      - 35998:35998
    volumes:
      - ssl_data:/etc/resty-auto-ssl
      - ./conf:/etc/nginx/conf.d
    environment:
      ALLOWED_DOMAINS: '00.deeznnutz.com'
      #SITES: 'yourdomain.com=myapp:80'
  
  znnd:
    build: .
    container_name: znnd
    ports:
      - "35995:35995"
    restart: always
    volumes:
      - data:/root/.znn

volumes:
  data:
  ssl_data:

and here is the 35997.conf file under ./conf

server {
  listen 35997 ssl default_server;
  
  include resty-server-https.conf;

  location / {
    proxy_pass http://znnd:35997;
  }
}

I'm getting a 403 error when I query the endpoint: https://reqbin.com/sqq4defa
Can you see what I'm doing wrong? Thank you.

curl -X GET https://00.deeznnutz.com:35997 -H "content-type: application/json" -d '{"jsonrpc": "2.0", "id": 40, "method": "stats.networkInfo", "params": []}'
@0x3639
Copy link
Author

0x3639 commented Dec 25, 2022

I'm seeing this error message in the logs of nginx.

nginx  | 2022/12/24 23:58:55 [error] 25#25: *6 [lua] ssl_certificate.lua:260: set_response_cert(): auto-ssl: failed to set ocsp stapling for 00.deeznnutz.com - continuing anyway - failed to get ocsp response: OCSP responder query failed (http://r3.o.lencr.org): address not available, context: ssl_certificate_by_lua*, client: REMOVE, server: 0.0.0.0:35997

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant