Code Monkey home page Code Monkey logo

Comments (19)

lastsamurai26 avatar lastsamurai26 commented on May 26, 2024

This is normal because you did not use a Docker volume but your own folder, so unfortunately you have to download the zip yourself and put it into the folder.

if you using this one then it work

version: "3.8"

services:

  linkstack:
    hostname: 'linkstack'
    image: 'linkstackorg/linkstack:latest'
    environment:
      TZ: 'Europe/Berlin'
      SERVER_ADMIN: '[email protected]'
      HTTP_SERVER_NAME: 'sub00.de'
      HTTPS_SERVER_NAME: 'sub00.de'
      LOG_LEVEL: 'info'
      PHP_MEMORY_LIMIT: '256M'
      UPLOAD_MAX_FILESIZE: '8M'
    ports:
      - '8190:443'
      - '8090:80'
    volumes:
      - llc:/htdocs
    restart: unless-stopped
volumes:
  llc:

from linkstack-docker.

AlFcl avatar AlFcl commented on May 26, 2024

What I did was upload the service with docker compose that you gave me but it didn't work, what I did now was download the file https://github.com/linkstackorg/linkstack/releases/latest/download/linkstack.zip
and I uploaded it to my folder but it gives me an error when entering the site

look https://alf.cl/

from linkstack-docker.

AlFcl avatar AlFcl commented on May 26, 2024

The stream or file "/htdocs/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: The stream or file "/htdocs/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: copy(/htdocs/config/advanced-config.php): Failed to open stream: Permission denied Context: {"exception":{}} Context: {"exception":{}}

from linkstack-docker.

JulianPrieber avatar JulianPrieber commented on May 26, 2024
find /htdocs -type d -print0 | xargs -0 chmod 0755
find /htdocs -type f -print0 | xargs -0 chmod 0644

from linkstack-docker.

AlFcl avatar AlFcl commented on May 26, 2024

dont work :c

from linkstack-docker.

BallistiX09 avatar BallistiX09 commented on May 26, 2024

@AlFcl That didn't work for me either, the issue is that when mounting a folder to a container, it erases the content already in that folder on the container's side. What I ended up doing was:

  • Set up a local empty volume and mount it to a temporary folder in the container: /linkstack-appdata:/htdocs2
  • Connect to the container's terminal
  • Copy all of the files from htdocs to the temporary folder: cp -a /htdocs/. /htdocs2/
  • Stop the container, and recreate it, but this time using the proper htdocs folder, instead of htdocs2: /linkstack-appdata:/htdocs

That worked for me, I'm using Unraid's docker manager so I'm not sure if it'll be exactly the same, but I feel like that should do the job!

from linkstack-docker.

AlFcl avatar AlFcl commented on May 26, 2024
find /htdocs -type d -print0 | xargs -0 chmod 0755
find /htdocs -type f -print0 | xargs -0 chmod 0644
/htdocs find /htdocs -type f -print0 | xargs -0 chmod 0644
BusyBox v1.36.1 (2023-06-02 00:42:02 UTC) multi-call binary.

Usage: chmod [-Rcvf] MODE[,MODE]... FILE...

MODE is octal number (bit pattern sstrwxrwxrwx) or [ugoa]{+|-|=}[rwxXst]

        -R      Recurse
        -c      List changed files
        -v      Verbose
        -f      Hide errors```

from linkstack-docker.

AlFcl avatar AlFcl commented on May 26, 2024

I fixed the permissions problem. What I did was go to the folder where the files are in the example alfcl/htdocs/ and enter chmod -R 777 . and inside the container also the same chmod -R 777 ., but now when entering a link it does not let me, it does not load any option

image

from linkstack-docker.

lastsamurai26 avatar lastsamurai26 commented on May 26, 2024

you need to set FORCE_HTTPS=false to true in your .env file

from linkstack-docker.

AlFcl avatar AlFcl commented on May 26, 2024

you need to set FORCE_HTTPS=false to true in your .env file

now happen this

downloadable font: download failed (font-family: "Inter" style:normal weight:500 stretch:100 src index:0): status=2147746065 source: https://alf.cl/studio/assets/fonts/Inter/inter-latin-500-normal.woff2
downloadable font: download failed (font-family: "Inter" style:normal weight:400 stretch:100 src index:0): status=2147746065 source: https://alf.cl/studio/assets/fonts/Inter/inter-latin-400-normal.woff2
downloadable font: download failed (font-family: "Inter" style:normal weight:400 stretch:100 src index:1): status=2147746065 source: https://alf.cl/studio/assets/fonts/Inter/inter-latin-400-normal.woff
downloadable font: download failed (font-family: "Inter" style:normal weight:500 stretch:100 src index:1): status=2147746065 source: https://alf.cl/studio/assets/fonts/Inter/inter-latin-500-normal.woff
Content-Security-Policy warnings 2
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/ [libs.min.js:25:78615](https://alf.cl/assets/js/core/libs.min.js)
Uncaught SyntaxError: redeclaration of let SliderTab
    <anonymous> https://alf.cl/studio/add-link line 14 > injectedScript:1
    b https://alf.cl/assets/js/core/libs.min.js:14
    globalEval https://alf.cl/assets/js/core/libs.min.js:14
    dataFilter https://alf.cl/assets/js/core/libs.min.js:25
    w https://alf.cl/assets/js/core/libs.min.js:25
    C https://alf.cl/assets/js/core/libs.min.js:25
    n https://alf.cl/assets/js/core/libs.min.js:25
    send https://alf.cl/assets/js/core/libs.min.js:25
    ajax https://alf.cl/assets/js/core/libs.min.js:25
    _evalUrl https://alf.cl/assets/js/core/libs.min.js:25
    Ne https://alf.cl/assets/js/core/libs.min.js:25
    append https://alf.cl/assets/js/core/libs.min.js:25
    html https://alf.cl/assets/js/core/libs.min.js:25
    B https://alf.cl/assets/js/core/libs.min.js:25
    html https://alf.cl/assets/js/core/libs.min.js:25
    load https://alf.cl/assets/js/core/libs.min.js:25
    l https://alf.cl/assets/js/core/libs.min.js:25
    fireWith https://alf.cl/assets/js/core/libs.min.js:25
    C https://alf.cl/assets/js/core/libs.min.js:25
    n https://alf.cl/assets/js/core/libs.min.js:25
[add-link line 14 > injectedScript:1:1](https://alf.cl/studio/add-link%20line%2014%20%3E%20injectedScript)
Uncaught SyntaxError: redeclaration of let Scrollbar
    <anonymous> https://alf.cl/studio/add-link line 14 > injectedScript:1
    b https://alf.cl/assets/js/core/libs.min.js:14
    globalEval https://alf.cl/assets/js/core/libs.min.js:14
    dataFilter https://alf.cl/assets/js/core/libs.min.js:25
    w https://alf.cl/assets/js/core/libs.min.js:25
    C https://alf.cl/assets/js/core/libs.min.js:25
    n https://alf.cl/assets/js/core/libs.min.js:25
    send https://alf.cl/assets/js/core/libs.min.js:25
    ajax https://alf.cl/assets/js/core/libs.min.js:25
    _evalUrl https://alf.cl/assets/js/core/libs.min.js:25
    Ne https://alf.cl/assets/js/core/libs.min.js:25
    append https://alf.cl/assets/js/core/libs.min.js:25
    html https://alf.cl/assets/js/core/libs.min.js:25
    B https://alf.cl/assets/js/core/libs.min.js:25
    html https://alf.cl/assets/js/core/libs.min.js:25
    load https://alf.cl/assets/js/core/libs.min.js:25
    l https://alf.cl/assets/js/core/libs.min.js:25
    fireWith https://alf.cl/assets/js/core/libs.min.js:25
    C https://alf.cl/assets/js/core/libs.min.js:25
    n https://alf.cl/assets/js/core/libs.min.js:25
[add-link line 14 > injectedScript:1:1](https://alf.cl/studio/add-link%20line%2014%20%3E%20injectedScript)
Uncaught SyntaxError: redeclaration of const datetime
    <anonymous> https://alf.cl/studio/add-link line 14 > injectedScript:1
    b https://alf.cl/assets/js/core/libs.min.js:14
    globalEval https://alf.cl/assets/js/core/libs.min.js:14
    dataFilter https://alf.cl/assets/js/core/libs.min.js:25
    w https://alf.cl/assets/js/core/libs.min.js:25
    C https://alf.cl/assets/js/core/libs.min.js:25
    n https://alf.cl/assets/js/core/libs.min.js:25
    send https://alf.cl/assets/js/core/libs.min.js:25
    ajax https://alf.cl/assets/js/core/libs.min.js:25
    _evalUrl https://alf.cl/assets/js/core/libs.min.js:25
    Ne https://alf.cl/assets/js/core/libs.min.js:25
    append https://alf.cl/assets/js/core/libs.min.js:25
    html https://alf.cl/assets/js/core/libs.min.js:25
    B https://alf.cl/assets/js/core/libs.min.js:25
    html https://alf.cl/assets/js/core/libs.min.js:25
    load https://alf.cl/assets/js/core/libs.min.js:25
    l https://alf.cl/assets/js/core/libs.min.js:25
    fireWith https://alf.cl/assets/js/core/libs.min.js:25
    C https://alf.cl/assets/js/core/libs.min.js:25
    n https://alf.cl/assets/js/core/libs.min.js:25
[add-link line 14 > injectedScript:1:1](https://alf.cl/studio/add-link%20line%2014%20%3E%20injectedScript)
Source map error: Error: request failed with status 404
Resource URL: https://alf.cl/assets/js/popper.js
Source Map URL: popper.min.js.map

Source map error: Error: request failed with status 404
Resource URL: https://alf.cl/assets/js/bootstrap.min.js
Source Map URL: bootstrap.min.js.map

image

from linkstack-docker.

lastsamurai26 avatar lastsamurai26 commented on May 26, 2024

which proxy you are using and which browser ?
is it firefox and apache ?

-> use another browser if this works - we need to check why

from linkstack-docker.

AlFcl avatar AlFcl commented on May 26, 2024

I used Firefox on Linux. Now on safari on iPhone and work there but un Firefox no

from linkstack-docker.

lastsamurai26 avatar lastsamurai26 commented on May 26, 2024

ok did you using traefik as proxy oder apache or nginx or nginx proxy manager ?

from linkstack-docker.

AlFcl avatar AlFcl commented on May 26, 2024

I am using nginx proxy manager

from linkstack-docker.

lastsamurai26 avatar lastsamurai26 commented on May 26, 2024
proxy_hide_header Upgrade;
proxy_hide_header X-Powered-By;
add_header Content-Security-Policy "upgrade-insecure-requests";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Cache-Control "no-transform" always;
add_header Referrer-Policy no-referrer always;
add_header X-Robots-Tag none;
    proxy_set_header Host               $host;
    proxy_set_header X-Real-IP          $remote_addr;

    proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto  https;
    proxy_set_header X-VerifiedViaNginx yes;
    proxy_read_timeout                  60;
    proxy_connect_timeout               60;
    proxy_redirect                      off;

    # Specific for websockets: force the use of HTTP/1.1 and set the Upgrade header
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_cache_bypass $http_upgrade;
    proxy_set_header X-Forwarded-Proto $scheme;
    
    # Fixes Mixed Content errors.
    add_header 'Content-Security-Policy' 'upgrade-insecure-requests';

maybe one of this will help you

from linkstack-docker.

AlFcl avatar AlFcl commented on May 26, 2024

On the nginx ??

from linkstack-docker.

lastsamurai26 avatar lastsamurai26 commented on May 26, 2024

image
in the last tab of the proxy host

from linkstack-docker.

AlFcl avatar AlFcl commented on May 26, 2024

work fine on chrome but on firefox not

from linkstack-docker.

lastsamurai26 avatar lastsamurai26 commented on May 26, 2024

ok here a workaround for nginx proxy Manager because of the headers
at the monent there is a bug
https://gist.github.com/R0GGER/916183fca41f02df1471a6f455e5869f

and for firefox you the latest beta Version from linkstack this will fix the problem

from linkstack-docker.

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.