Giter Site home page Giter Site logo

How to enable HTTPS? about awesome-ttrss HOT 5 CLOSED

henryqw avatar henryqw commented on June 6, 2024
How to enable HTTPS?

from awesome-ttrss.

Comments (5)

HenryQW avatar HenryQW commented on June 6, 2024 1

HTTPS should be handled using Nginx reverse proxy, not by container itself.

from awesome-ttrss.

HenryQW avatar HenryQW commented on June 6, 2024 1

What do you mean by “Nginx settings are lost”? Nginx is not included and I’m not intended to include it.

My Nginx config looks like this:

upstream ttrssdev {
    server 127.0.0.1:181;
}

server {
    listen 80;
    server_name  ttrssdev.henry.wang;
    return 301 https://ttrssdev.henry.wang$request_uri;
}

server {
    listen 443 ssl;
    gzip on;
    server_name  ttrssdev.henry.wang;

    ssl_certificate /etc/letsencrypt/live/ttrssdev.henry.wang/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/ttrssdev.henry.wang/privkey.pem;

    access_log /var/log/nginx/ttrssdev_access.log combined;
    error_log  /var/log/nginx/ttrssdev_error.log;

    location / {
        proxy_redirect off;
        proxy_pass http://ttrssdev;

        proxy_set_header  Host                $http_host;
        proxy_set_header  X-Real-IP           $remote_addr;
        proxy_set_header  X-Forwarded-Ssl     on;
        proxy_set_header  X-Forwarded-For     $proxy_add_x_forwarded_for;
        proxy_set_header  X-Forwarded-Proto   $scheme;
        proxy_set_header  X-Frame-Options     SAMEORIGIN;

        client_max_body_size        100m;
        client_body_buffer_size     128k;

        proxy_buffer_size           4k;
        proxy_buffers               4 32k;
        proxy_busy_buffers_size     64k;
        proxy_temp_file_write_size  64k;
    }
}

from awesome-ttrss.

gianvitom avatar gianvitom commented on June 6, 2024

Ok but modifying the docker compose all the Nginx settings are lost. Is there a way to enable it even with self signed certificate?

from awesome-ttrss.

gianvitom avatar gianvitom commented on June 6, 2024

Can you give me some tips or links where I can see how to enable it using your project?

from awesome-ttrss.

gianvitom avatar gianvitom commented on June 6, 2024

I mean using the Container station in QNAP when I change a Docker file he will try to restart them and the content in /etc/nginx/nginx.conf is replaced with the default one with only the 80 port.

Ok I will try to add something similar to you, thank you!

from awesome-ttrss.

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.