Coder Social home page Coder Social logo

webserverbackend's Introduction

Webserver Backend

The full, Priveasy django backend


If installing from scratch (i.e. onto a server where a fresh OS (re)installation has been done), follow the server configuration instructions to set up the entire server, including this backend, from scratch.

If upgrading the already-existent backend on a Priveasy webserver, do the following:

  • Make sure the migrations found on the base webserver match those found in this repository as well as those found on any duplicate webserver. If the base webserver is ahead, add the latest migrations to this repository.
  • Make sure you securely back up /home/ubuntu/Priveasy/Priveasy/settings/.env. This file will be wiped and replaced with a blank version that will not have all of the necessary entries. Most of these entries are only added to the file during a full server re-configuration.
  • Run the following command as user ubuntu: cd /home/ubuntu && sudo rm -rf ATTRIBUTION README.md LICENSE Priveasy priveasyVPN && git clone https://github.com/P5vc/WebserverBackend.git && mv WebserverBackend/* ./ && rm -rf WebserverBackend.
  • Replace the /home/ubuntu/Priveasy/Priveasy/settings/.env file with the properly backed-up version, and make any adjustments for entries that may have been added in the new update.
  • Run source /home/ubuntu/priveasyEnv/bin/activate && cd /home/ubuntu && python Priveasy/manage.py check --deploy && python Priveasy/manage.py collectstatic && python Priveasy/manage.py makemigrations && python Priveasy/manage.py migrate && python Priveasy/manage.py installtasks then follow any prompts that may appear. If new migrations were applied, commit those to this repository.
  • Replace the ssl_certificate and ssl_certificate_key options in the /home/ubuntu/Priveasy/config/nginx.conf file with the correct, Let's Encrypt key location (only if this is the base webserver). The correct entries will probably be /etc/letsencrypt/live/p5.vc/fullchain.pem and /etc/letsencrypt/live/p5.vc/privkey.pem, respectively.
  • Reboot the server.

webserverbackend's People

Contributors

p5vc avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.