Commit 30a6d280 authored by Mickaël Bourgier's avatar Mickaël Bourgier
Browse files

[nginx] Update vhosts

parent 7da4937d
server {
listen 80;
charset utf-8;
client_max_body_size 20M;
server_name smart.acte2i.localhost api.acte2i.localhost visite.acte2i.localhost;
root "/home/chapa/Documents/Development/Client projects/smart-acte2i/html";
index index.php index.html;
if (!-d $request_filename) {
# Redirection des urls commençant par index.php/
rewrite ^/index.php/(.)$ /$1 permanent;
# Retrait du slash final
rewrite ^/(.)/$ /$1 permanent;
}
location / {
# try to serve file directly, fallback to app.php
try_files $uri /index.php$is_args$args;
}
location ~ ^/(index)\.php(/|$) {
fastcgi_pass php56:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param APPLICATION_ENV development_pj;
fastcgi_param HTTPS off;
fastcgi_read_timeout 300;
}
access_log /var/log/nginx/smart-acte2i_access.log;
error_log /var/log/nginx/smart-acte2i_error.log;
}
server {
listen 80;
listen 80 default;
charset utf-8;
server_name smart.affimobile.localhost api.affimobile.localhost;
server_name smart.affimobile.localhost api.affimobile.localhost api.affimobile.192.168.0.19.xip.io api.affimobile.192.168.0.41.xip.io api.affimobile.192.168.1.69.xip.io;
root "/home/chapa/Documents/Development/Client projects/affi-mobile/web";
......
......@@ -22,7 +22,7 @@ server {
listen 80;
charset utf-8;
server_name agda.localhost www.agda.localhost smart.agda.localhost api.smart.agda.localhost;
server_name agda.localhost www.agda.localhost smart.agda.localhost api.smart.agda.localhost anakin.agda.localhost;
server_name immo-chartreuse.localhost agda-voiron.localhost resid-immo.localhost alpe-agence.localhost;
server_name fonciere-etoile.localhost;
server_name agda-andreolety.localhost agence-agda.localhost arch-immo.localhost bugey-immobilier.localhost;
......@@ -54,6 +54,18 @@ server {
try_files $uri /app_dev.php$is_args$args;
}
location /node {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://192.168.64.1:8124;
}
error_log /var/log/nginx/agda_errors.log;
access_log /var/log/nginx/agda_access.log;
......
......@@ -2,7 +2,8 @@ server {
listen 80;
charset utf-8;
server_name api.game-backups.localhost;
server_name api.game-backups.localhost gb.192.168.0.41.xip.io;
server_name api.game-backups.192.168.1.69.xip.io; # Appartement Voiron
root "/home/chapa/Documents/Development/Personal projects/game-backups-server/public";
......
......@@ -14,7 +14,15 @@ server {
try_files $uri =404;
}
include php.conf;
location ~ \.php$ {
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_read_timeout 300;
fastcgi_intercept_errors on;
fastcgi_pass php56:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
error_log /var/log/nginx/myapi-pharmanity_error.log;
access_log /var/log/nginx/myapi-pharmanity_access.log;
......
server {
listen 80;
server_name .pharmanity.com vitrine.pharmacie.click www.pharmaciegambetta33.fr pharmacie.croixdeberny.fr www.pharmacie-hotel-de-ville-bondy.fr vitrine.groupement-aelia-click-collect.fr www.pharmacie-douet.fr demo.groupement-aelia-click-collect.fr;
root "/home/chapa/Documents/Development/Client projects/pharmanity-legacy/www.pharmanity.com";
index index.php index.html index.htm;
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain; charset=utf-8';
add_header 'Content-Length' 0;
return 204;
}
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
add_header 'Access-Control-Expose-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
try_files $uri $uri/ /index.php;
}
location ~ ^/assets/img/parapharmacie/thumb-.*i([0-9]*\.(jpg|png|jpeg))$ {
try_files $uri $uri/ /getImage.php?img=$1&size=small;
}
location ~ ^/assets/img/parapharmacie/.*i([0-9]*\.(jpg|png|jpeg))$ {
try_files $uri $uri/ /getImage.php?img=$1;
}
location ~ \.php$ {
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_read_timeout 300;
fastcgi_intercept_errors on;
fastcgi_pass php56:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 443 ssl;
ssl_certificate "/home/chapa/Documents/Development/Client projects/pharmanity-legacy/www.pharmanity.com/ssl/www.pharmanity.com.crt";
ssl_certificate_key "/home/chapa/Documents/Development/Client projects/pharmanity-legacy/www.pharmanity.com/ssl/www.pharmanity.com.key";
server_name .pharmanity.com vitrine.pharmacie.click www.pharmaciegambetta33.fr pharmacie.croixdeberny.fr www.pharmacie-hotel-de-ville-bondy.fr www.pharmacie-douet.fr ;
root "/home/chapa/Documents/Development/Client projects/pharmanity-legacy/www.pharmanity.com";
index index.php index.html index.htm;
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain; charset=utf-8';
add_header 'Content-Length' 0;
return 204;
}
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
add_header 'Access-Control-Expose-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
try_files $uri $uri/ /index.php;
}
location ~ ^/assets/img/parapharmacie/thumb-.*i([0-9]*\.(jpg|png|jpeg))$ {
try_files $uri $uri/ /getImage.php?img=$1&size=small;
}
location ~ ^/assets/img/parapharmacie/.*i([0-9]*\.(jpg|png|jpeg))$ {
try_files $uri $uri/ /getImage.php?img=$1;
}
location ~ \.php$ {
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_read_timeout 300;
fastcgi_intercept_errors on;
fastcgi_pass php56:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
error_log /var/log/nginx/pharmanity_errors.log;
access_log /var/log/nginx/pharmanity_access.log;
}
server {
listen 80;
charset utf-8;
server_name api.pharmanity.localhost;
root "/home/chapa/Documents/Development/Client projects/pharmanity-api/public";
client_max_body_size 1000M;
location / {
try_files $uri /index.php$is_args$args;
}
location ~ \.(css|js)\.map$ {
try_files $uri =404;
}
include php.conf;
error_log /var/log/nginx/pharmanity-api_errors.log;
access_log /var/log/nginx/pharmanity-api_access.log;
}
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