Skip to content

Setup OGProxy for use in NodeBB

Moved Let's Build It
110 5 55.3k 2
  • ???

    Example:

    image.png

    yep better with disable all the rest of my CSS code grrrrr

    it’s not going to be easy to find but it shows that there may be conflicts with the master CSS used

    wrote on last edited by
    #23

    @DownPW I don’t think that’s in the list of classes I provided?

  • wrote on last edited by phenomlab
    #24

    hmm yes

    h4.card-site-title {
        color: var(--bs-body-color);
        text-transform: capitalize;
    }
    
  • hmm yes

    h4.card-site-title {
        color: var(--bs-body-color);
        text-transform: capitalize;
    }
    
    wrote on last edited by
    #25

    @DownPW no. Look at your screenshot. The initial target is #sitetitle. Also, there’s no enforcement of !important in that class.

  • wrote on last edited by DownPW
    #26

    yes you are right.

    I Have find the guilty: It’s my code to have an effect on URL link :

    .posts .content a {
        color: var(--bs-link-color);
        /*background-image: linear-gradient(to right, var(--bs-link-color), var(--bs-link-color) 50%, var(--bs-link-hover-color) 50%);*/
        background-image: linear-gradient(to right, var(--bs-link-hover-color), var(--bs-link-hover-color) 50%, var(--bs-link-color) 50%);
        background-size: 200% 100%;
        background-position: -100%;
        display: inline-block;
        padding: 5px 0;
        position: relative;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        transition: all 0.3s ease-in-out;
    }
    
    .posts .content a:hover {
     background-position: 0;
    }
    
    .posts .content a:hover::before{
        width: 100%;
    }
    
  • wrote on last edited by DownPW
    #27

    But I wonder how to keep it without it coming into conflict with OGProxy, especially for the internal links to the site which do not have an iframe

  • But I wonder how to keep it without it coming into conflict with OGProxy, especially for the internal links to the site which do not have an iframe

    wrote on last edited by
    #28

    @DownPW just needs carefully crafted CSS.

  • wrote on last edited by DownPW
    #29

    @DownPW said in Setup OGProxy for use in NodeBB:

    especially for the internal links to the site which do not have an iframe

    it works ??!!!

    Internal links are also in an Iframe.
    Very strange,I thought that was not the intended operation.

  • @DownPW said in Setup OGProxy for use in NodeBB:

    especially for the internal links to the site which do not have an iframe

    it works ??!!!

    Internal links are also in an Iframe.
    Very strange,I thought that was not the intended operation.

    wrote on last edited by phenomlab
    #30

    @DownPW it wasn’t to start with, but I changed my mind 🤭

  • @DownPW it wasn’t to start with, but I changed my mind 🤭

    wrote on last edited by
    #31

    @DownPW can you pm me a link to an internal URL ? Something I’d like to check.

  • wrote on last edited by DownPW
    #32

    So I no longer need my effect code if all the URL links, even internal ones, are in an Iframe so managed by OGProxy 😉
    You could have told me before I racked my brains little trickster ha ha 😊

    But I thought it would cause perf issues so I guess you found a workaround for that 😉

    @phenomlab said in Setup OGProxy for use in NodeBB:

    @DownPW can you pm me a link to an internal URL ? Something I’d like to check.

    On my Domain ?

  • So I no longer need my effect code if all the URL links, even internal ones, are in an Iframe so managed by OGProxy 😉
    You could have told me before I racked my brains little trickster ha ha 😊

    But I thought it would cause perf issues so I guess you found a workaround for that 😉

    @phenomlab said in Setup OGProxy for use in NodeBB:

    @DownPW can you pm me a link to an internal URL ? Something I’d like to check.

    On my Domain ?

    wrote on last edited by
    #33

    @DownPW sorry. Yes, I did find a workaround.

    Yes, your Dev instance please.

  • wrote on last edited by
    #34

    Hi, I’ve followed all steps but unfortunately don’t get it to work. Here’s the console output:

    OGProxy: Domains containing (or starting with) http://xx.xxx.xxx.xxx are in the ignore list and will not be parsed.
    OGProxy: Paths containing /post are in the ignore list and will not be parsed. 
    OGProxy: Parsing DOM for any URLs that should be converted to previews.
    
  • Hi, I’ve followed all steps but unfortunately don’t get it to work. Here’s the console output:

    OGProxy: Domains containing (or starting with) http://xx.xxx.xxx.xxx are in the ignore list and will not be parsed.
    OGProxy: Paths containing /post are in the ignore list and will not be parsed. 
    OGProxy: Parsing DOM for any URLs that should be converted to previews.
    
    wrote on last edited by
    #35

    @dave1904 is the server running ?

  • wrote on last edited by
    #36

    @phenomlab Yes

    ● ogproxy.service - OGProxy Server
         Loaded: loaded (/etc/systemd/system/ogproxy.service; enabled; vendor preset: enabled)
         Active: active (running) since Tue 2023-06-13 21:32:17 UTC; 34min ago
       Main PID: 948850 (node)
          Tasks: 7 (limit: 1131)
         Memory: 16.0M
         CGroup: /system.slice/ogproxy.service
                 └─948850 /usr/bin/node /home/ogproxy/ogproxy/server.js
    
  • @phenomlab Yes

    ● ogproxy.service - OGProxy Server
         Loaded: loaded (/etc/systemd/system/ogproxy.service; enabled; vendor preset: enabled)
         Active: active (running) since Tue 2023-06-13 21:32:17 UTC; 34min ago
       Main PID: 948850 (node)
          Tasks: 7 (limit: 1131)
         Memory: 16.0M
         CGroup: /system.slice/ogproxy.service
                 └─948850 /usr/bin/node /home/ogproxy/ogproxy/server.js
    
    wrote on last edited by
    #37

    @dave1904 can you provide your nginx config?

  • @dave1904 can you provide your nginx config?

    wrote on last edited by
    #38

    @phenomlab I have send you a pm

  • @phenomlab I have send you a pm

    wrote on last edited by
    #39

    @dave1904 thanks. Any errors in the console?

  • wrote on last edited by
    #40
    This post is deleted!
  • wrote on last edited by dave1904
    #41

    @phenomlab Yes:

    OPTIONS
    
    https://media.werkself-forum.de/ogproxy?url=https://www1.wdr.de/sport/fussball/erste-bundesliga/bundesliga-teamcheck-winter-bayer-leverkusen-100.html
    
    CORS Missing Allow Origin
    

    It seems to me that I missed something in the nginx configuration.

  • @phenomlab Yes:

    OPTIONS
    
    https://media.werkself-forum.de/ogproxy?url=https://www1.wdr.de/sport/fussball/erste-bundesliga/bundesliga-teamcheck-winter-bayer-leverkusen-100.html
    
    CORS Missing Allow Origin
    

    It seems to me that I missed something in the nginx configuration.

    wrote on last edited by phenomlab
    #42

    @dave1904 not the nginx configuration, but in server.js under this specific section

    app.use(cors({ origin: 'FULL_FQDN_OF_YOUR_ORIGIN_HERE' }));
    

Related Topics