Giter Site home page Giter Site logo

Comments (4)

Finb avatar Finb commented on May 24, 2024 4

I'm not sure what the problem is, you can compare my configuration below.

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name api.day.app ;

    add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";

    # certs sent to the client in SERVER HELLO are concatenated in ssl_certificate
    ssl_certificate ssl/day.app/day.app.cer;
    ssl_certificate_key ssl/day.app/day.app.key;
    ssl_session_timeout 1d;
    ssl_session_cache shared:SSL:50m;
    ssl_session_tickets off;

    # modern configuration. tweak to your needs.
    ssl_protocols TLSv1.2;
    ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
    ssl_prefer_server_ciphers on;


    # OCSP Stapling ---
    # fetch OCSP records from URL in ssl_certificate and cache them
    ssl_stapling on;
    ssl_stapling_verify on;

    ## verify chain of trust of OCSP response using Root CA and Intermediate certs
    ssl_trusted_certificate ssl/ca.cer;

    location / {
       proxy_pass http://127.0.0.1:8081;
    }

}

server {
    listen 80 ;
    server_name api.day.app ;

    location / {
       proxy_pass http://127.0.0.1:8081;
    }

}

from bark-server.

mritd avatar mritd commented on May 24, 2024 2

@dingyx99 Please remove the proxy_header Upgrade config, this config is generally used to upgrade the http protocol to the websocket protocol(bark server is the standard http protocol).

If you don't know the nginx config file, it is recommended use the Mozilla SSL Configuration Generator to generate the nginx configuration.

from bark-server.

dingyx99 avatar dingyx99 commented on May 24, 2024

Thanks. I'll have a try and give you more feedback later. XD

from bark-server.

dingyx99 avatar dingyx99 commented on May 24, 2024

@mritd Thanks, but the problem didn't fix.😕Maybe there are something wrong with anything else in my server.

from bark-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.