{"action":"created","issue":{"url":"https://api.github.com/repos/shaarli/Shaarli/issues/1244","repository_url":"https://api.github.com/repos/shaarli/Shaarli","labels_url":"https://api.github.com/repos/shaarli/Shaarli/issues/1244/labels{/name}","comments_url":"https://api.github.com/repos/shaarli/Shaarli/issues/1244/comments","events_url":"https://api.github.com/repos/shaarli/Shaarli/issues/1244/events","html_url":"https://github.com/shaarli/Shaarli/issues/1244","id":383835667,"node_id":"MDU6SXNzdWUzODM4MzU2Njc=","number":1244,"title":"Docker image + nginx reverse proxy in a folder : Loading failed for scripts","user":{"login":"TheEmidee","id":855789,"node_id":"MDQ6VXNlcjg1NTc4OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/855789?v=4","gravatar_id":"","url":"https://api.github.com/users/TheEmidee","html_url":"https://github.com/TheEmidee","followers_url":"https://api.github.com/users/TheEmidee/followers","following_url":"https://api.github.com/users/TheEmidee/following{/other_user}","gists_url":"https://api.github.com/users/TheEmidee/gists{/gist_id}","starred_url":"https://api.github.com/users/TheEmidee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheEmidee/subscriptions","organizations_url":"https://api.github.com/users/TheEmidee/orgs","repos_url":"https://api.github.com/users/TheEmidee/repos","events_url":"https://api.github.com/users/TheEmidee/events{/privacy}","received_events_url":"https://api.github.com/users/TheEmidee/received_events","type":"User","site_admin":false},"labels":[{"id":423987779,"node_id":"MDU6TGFiZWw0MjM5ODc3Nzk=","url":"https://api.github.com/repos/shaarli/Shaarli/labels/docker","name":"docker","color":"eb6420","default":false},{"id":251640905,"node_id":"MDU6TGFiZWwyNTE2NDA5MDU=","url":"https://api.github.com/repos/shaarli/Shaarli/labels/proxy","name":"proxy","color":"bfdadc","default":false},{"id":512465103,"node_id":"MDU6TGFiZWw1MTI0NjUxMDM=","url":"https://api.github.com/repos/shaarli/Shaarli/labels/support","name":"support","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-23T14:03:19Z","updated_at":"2018-12-03T13:57:36Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI'm using shaarli in docker. I have a docker-compose file where I already have a letsencrypt docker image, with an nginx configured to reverse proxy all the other services I run:\r\n\r\n```yml\r\nversion: '3.4'\r\nservices:\r\n\r\n  shaarli:\r\n    image: shaarli/shaarli:latest\r\n    container_name: shaarli\r\n    restart: unless-stopped\r\n    ports:\r\n      - 8070:80\r\n    environment:\r\n      - PUID=1000\r\n      - GUID=1000\r\n    volumes:\r\n      - ${HOME}/.config/shaarli/cache:/var/www/shaarli/cache\r\n      - ${HOME}/.config/shaarli/data:/var/www/shaarli/data\r\n\r\n  letsencrypt:\r\n    image: linuxserver/letsencrypt:latest\r\n    container_name: letsencrypt\r\n    ports:\r\n      - 80:80\r\n      - 443:443\r\n    volumes:\r\n      - ${HOME}/.config/letsencrypt:/config\r\n    restart:\r\n      always\r\n    depends_on:\r\n      - sonarr\r\n      - mylar\r\n      - nzbget\r\n      - radarr\r\n    environment:\r\n      - PUID=1000\r\n      - PGID=1000\r\n      - EMAIL=michael@emidee.net\r\n      - URL=emidee.net\r\n      - SUBDOMAINS=my\r\n      - ...\r\n```\r\n\r\nThe nginx config file:\r\n\r\n```nginx\r\nserver {\r\n        listen 80;\r\n        server_name _;\r\n        return 301 https://$host$request_uri;\r\n}\r\nserver {\r\n    listen 443 ssl http2 default_server;\r\n\r\n    root /config/www;\r\n    index index.html index.htm index.php;\r\n\r\n    server_name _;\r\n\r\n    # enable subfolder method reverse proxy confs\r\n    include /config/nginx/proxy-confs/*.subfolder.conf;\r\n\r\n    # all ssl related config moved to ssl.conf\r\n    include /config/nginx/ssl.conf;\r\n\r\n    client_max_body_size 0;\r\n\r\n    location / {\r\n        try_files $uri $uri/ /index.html /index.php?$args =404;\r\n    }\r\n\r\n    location ~ \\.php$ {\r\n        fastcgi_split_path_info ^(.+\\.php)(/.+)$;\r\n        # With php7-cgi alone:\r\n        fastcgi_pass 127.0.0.1:9000;\r\n        # With php7-fpm:\r\n        #fastcgi_pass unix:/var/run/php7-fpm.sock;\r\n        fastcgi_index index.php;\r\n        include /etc/nginx/fastcgi_params;\r\n   }\r\n\r\n    location /radarr\r\n    {\r\n        proxy_pass  http://192.168.0.1:7878;\r\n        proxy_set_header Host $host;\r\n        proxy_set_header X-Real-IP $remote_addr;\r\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n    }\r\n\r\n    location /shaarli\r\n    {\r\n        proxy_pass  http://192.168.0.1:8070;\r\n\r\n        proxy_set_header  X-Real-IP         $remote_addr;\r\n        proxy_set_header  X-Forwarded-For   $proxy_add_x_forwarded_for;\r\n        proxy_set_header  X-Forwarded-Proto $scheme;\r\n        proxy_set_header  X-Forwarded-Host  $host;\r\n    }\r\n}\r\n```\r\n\r\nAll the services work fine, but when it comes to shaarli, the site is displayed, but it cannot load the JS or the CSS files:\r\n\r\n`Loading failed for the <script> with source “https://mywebsite.com/shaarli/plugins/qrcode/shaarli-qrcode.js”. shaarli:370:1`\r\n\r\nAny idea what could be wrong here?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/shaarli/Shaarli/issues/comments/443718416","html_url":"https://github.com/shaarli/Shaarli/issues/1244#issuecomment-443718416","issue_url":"https://api.github.com/repos/shaarli/Shaarli/issues/1244","id":443718416,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzcxODQxNg==","user":{"login":"TheEmidee","id":855789,"node_id":"MDQ6VXNlcjg1NTc4OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/855789?v=4","gravatar_id":"","url":"https://api.github.com/users/TheEmidee","html_url":"https://github.com/TheEmidee","followers_url":"https://api.github.com/users/TheEmidee/followers","following_url":"https://api.github.com/users/TheEmidee/following{/other_user}","gists_url":"https://api.github.com/users/TheEmidee/gists{/gist_id}","starred_url":"https://api.github.com/users/TheEmidee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheEmidee/subscriptions","organizations_url":"https://api.github.com/users/TheEmidee/orgs","repos_url":"https://api.github.com/users/TheEmidee/repos","events_url":"https://api.github.com/users/TheEmidee/events{/privacy}","received_events_url":"https://api.github.com/users/TheEmidee/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T13:57:36Z","updated_at":"2018-12-03T13:57:36Z","author_association":"NONE","body":"Thanks for your answer. I chose `1.`, the easiest :)"}}
{"actor":{"display_login":"TheEmidee"}}