Giter VIP home page Giter VIP logo

nextcloud_installer's Introduction

1.run in command prompt: "[folder_contain_docker_compose.yml]:\> docker compose up -d"
2. copy default.conf into .\nginx_data, and restart nginx-proxy container.
   $ docker stop nginx-proxy
   $ docker start nginx-proxy

3. open browser, and logon to nextcloud using this url:
    http://localhost:8081
4. create admin account in nextcloud portal
5. enable https via the step below:

  docker exec -it -u www-data nextcloud php occ config:system:set trusted_domains 0 --value=localhost
  docker exec -it -u www-data nextcloud php occ config:system:set trusted_domains 1 --value=172.*.*.*
  docker exec -it -u www-data nextcloud php occ config:system:set trusted_domains 2 --value=nextcloud.*
  docker exec -it -u www-data nextcloud php occ config:system:set trusted_domains 3 --value=127.0.0.1
  docker exec -it -u www-data nextcloud php occ config:system:set trusted_domains 4 --value=192.*.*.*
  docker exec -it -u www-data nextcloud php occ config:system:set overwriteprotocol --value=https
  docker exec -it -u www-data nextcloud php occ config:system:set overwrite.cli.url --value=https://localhost

6. now, relaunch nextcloud in browser using this url:
  https://localhost
  
7. to stop, run in command prompt:
  [folder_contain_docker_compose.yml]:\> docker compose stop"
8. to rerun, do:
[folder_contain_docker_compose.yml]:\> docker compose start"

9. if static ip is used for the host, make sure the ip is in the 192.168.x.x subnet

10. create scheduled task:
SCHTASKS /Create /S %computername% /RU SYSTEM /TN nextcloud /TR "docker exec -u www-data nextcloud php /var/www/html/cron.php" /SC MINUTE /RL highest

nextcloud_installer's People

Contributors

wallace-lee avatar

Watchers

 avatar

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.