Verified Commit c6b42f29 authored by Tharyrok's avatar Tharyrok
Browse files

Change config nginx add version psql, php

parent 19b61422
......@@ -11,10 +11,10 @@ server {
return 204 '';
}
location /certificates {
location ^~ /certificates {
alias /home/vagrant/src/backend/certificates/public;
try_files $uri $uri/ /certificates/index.php?$query_string;
try_files $uri $uri/ @certificates;
location ~ \.php$ {
try_files $uri =404;
......@@ -27,11 +27,14 @@ server {
fastcgi_buffer_size 32k;
}
}
location @certificates {
rewrite /certificates/(.*)$ /certificates/index.php?$1 last;
}
location /ipam {
location ^~ /ipam {
alias /home/vagrant/src/backend/ipam/public;
try_files $uri $uri/ /ipam/index.php?$query_string;
try_files $uri $uri/ @ipam;
location ~ \.php$ {
try_files $uri =404;
......@@ -45,10 +48,14 @@ server {
}
}
location /stats {
location @ipam {
rewrite /ipam/(.*)$ /ipam/index.php?$1 last;
}
location ^~ /stats {
alias /home/vagrant/src/backend/stats/public;
try_files $uri $uri/ /stats/index.php?$query_string;
try_files $uri $uri/ @stats;
location ~ \.php$ {
try_files $uri =404;
......@@ -62,6 +69,10 @@ server {
}
}
location @stats {
rewrite /stats/(.*)$ /stats/index.php?$1 last;
}
location = /favicon.ico {
log_not_found off;
access_log off;
......
......@@ -29,7 +29,8 @@
php8.0-readline,
php8.0-xml,
php8.0-xdebug,
php8.0-pgsql
php8.0-pgsql,
php8.0-intl
]
state: present
......
......@@ -27,13 +27,13 @@
- name: Install postgresql
apt:
name: [postgresql-12, timescaledb-postgresql-12, python-psycopg2]
name: [postgresql-13, timescaledb-2-postgresql-13, python-psycopg2]
state: present
- name: Copie timescaledb.conf
copy:
src: timescaledb.conf
dest: /etc/postgresql/12/main/conf.d/timescaledb.conf
dest: /etc/postgresql/13/main/conf.d/timescaledb.conf
owner: root
group: root
mode: u+rw,g+r,o+r
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment