Open ssl.conf in a text editor.
Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.
DNS.1 = my-project.dev
Additional FQDNs can be added if required:
Follow the installation instructions on the Airflow website.
To configure Airflow to use Postgres rather than the default Sqlite3, go to airflow.cfg and update this configuration to LocalExecutor:
# The executor class that airflow should use. Choices include| class Article < ActiveRecord::Base | |
| include Elasticsearch::Model | |
| include Elasticsearch::Model::Callbacks | |
| settings index: { number_of_shards: 1 } do | |
| mappings dynamic: 'false' do | |
| indexes :name | |
| indexes :author | |
| indexes :location, type: :geo_point | |
| indexes :created_at, type: :date |
| INSTALL JAVA | |
| $ sudo apt-get update && sudo apt-get install default-jre | |
| INSTALL ELASTIC SEARCH https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html | |
| $ wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
| $ echo "deb https://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list | |
| $ sudo apt-get update && sudo apt-get install elasticsearch | |
| $ sudo update-rc.d elasticsearch defaults 95 10 | |
| $ sudo service elasticsearch restart | |
| $ sudo service elasticsearch status |
| redis: | |
| image: redis:3.0.5 | |
| expose: | |
| - 6379 | |
| volumes: | |
| - redis:/var/lib/redis/data | |
| web: | |
| build: . | |
| command: bundle exec rails s -p 3000 -b '0.0.0.0' | |
| volumes: |
| --- | |
| # Deploy rails app from localhost to remote servers | |
| - name: Set up AWS infrastructure | |
| hosts: localhost | |
| connection: local | |
| roles: | |
| - setup_aws | |
| - name: Package app |
| # /etc/nginx/sites-available/www.valentin-deville.eu | |
| # Redirection de http sur https | |
| server { | |
| listen 80; | |
| server_name www.valentin-deville.eu; | |
| rewrite ^ https://$server_name$request_uri? permanent; | |
| } |
| --- | |
| - name: Install netdata on a Linux host | |
| hosts: all | |
| become: true | |
| tasks: | |
| - name: Install depdendencies | |
| yum: | |
| name: "{{item}}" | |
| state: present |
| # Set nginx base image | |
| FROM nginx | |
| # Copy custom configuration file from the current directory | |
| COPY nginx.conf /etc/nginx/nginx.conf |