mirror of https://gitlab.crans.org/bde/nk20
Anonymize data, fix remittance import, better Ansible
This commit is contained in:
parent
b8d4fb9df1
commit
0335a47667
|
@ -11,7 +11,7 @@
|
||||||
git:
|
git:
|
||||||
repo: https://gitlab.crans.org/bde/nk20.git
|
repo: https://gitlab.crans.org/bde/nk20.git
|
||||||
dest: /var/www/note_kfet
|
dest: /var/www/note_kfet
|
||||||
version: beta-soon
|
version: master
|
||||||
force: true
|
force: true
|
||||||
|
|
||||||
- name: Use default env vars (should be updated!)
|
- name: Use default env vars (should be updated!)
|
||||||
|
@ -19,6 +19,7 @@
|
||||||
src: "env_example"
|
src: "env_example"
|
||||||
dest: "/var/www/note_kfet/.env"
|
dest: "/var/www/note_kfet/.env"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
force: false
|
||||||
|
|
||||||
- name: Update permissions for note_kfet dir
|
- name: Update permissions for note_kfet dir
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -15,6 +15,11 @@
|
||||||
group: www-data
|
group: www-data
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
|
- name: Disable default Nginx site
|
||||||
|
file:
|
||||||
|
dest: /etc/nginx/sites-enabled/default
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Copy conf of UWSGI
|
- name: Copy conf of UWSGI
|
||||||
file:
|
file:
|
||||||
src: /var/www/note_kfet/uwsgi_note.ini
|
src: /var/www/note_kfet/uwsgi_note.ini
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
# the upstream component nginx needs to connect to
|
||||||
|
upstream note{
|
||||||
|
server unix:///var/www/note_kfet/note_kfet.sock; # file socket
|
||||||
|
}
|
||||||
|
|
||||||
|
# configuration of the server
|
||||||
|
server {
|
||||||
|
# the port your site will be served on
|
||||||
|
# the domain name it will serve for
|
||||||
|
server_name nk20-beta.crans.org; # substitute your machine's IP address or FQDN
|
||||||
|
charset utf-8;
|
||||||
|
|
||||||
|
# max upload size
|
||||||
|
client_max_body_size 75M; # adjust to taste
|
||||||
|
|
||||||
|
# Django media
|
||||||
|
location /media {
|
||||||
|
alias /var/www/note_kfet/media; # your Django project's media files - amend as required
|
||||||
|
}
|
||||||
|
|
||||||
|
location /static {
|
||||||
|
alias /var/www/note_kfet/static; # your Django project's static files - amend as required
|
||||||
|
}
|
||||||
|
|
||||||
|
# Finally, send all non-media requests to the Django server.
|
||||||
|
location / {
|
||||||
|
uwsgi_pass note;
|
||||||
|
include /var/www/note_kfet/uwsgi_params; # the uwsgi_params file you installed
|
||||||
|
}
|
||||||
|
|
||||||
|
listen 443 ssl;
|
||||||
|
ssl_certificate /etc/letsencrypt/live/nk20-beta.crans.org/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/nk20-beta.crans.org/privkey.pem;
|
||||||
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
if ($host = nk20-beta.crans.org) {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
listen 80;
|
||||||
|
server_name nk20-beta.crans.org;
|
||||||
|
return 404;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -1 +1 @@
|
||||||
Subproject commit 748ad7eb4813f2bb2f273a5e29cadeda1d58c3a1
|
Subproject commit 126e5fa1e468298133f582b1dd1d380092b1eec8
|
Loading…
Reference in New Issue