このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
kikikan/infra/nginx/default.conf

45 行
1.1 KiB
Plaintext
Raw 通常表示 履歴

2021-08-03 15:34:15 +09:00
server {
listen 80;
2021-12-12 14:40:31 +09:00
# listen 443 ssl;
2021-12-01 10:10:40 +09:00
server_name kikikan.xyz;
2021-08-03 15:34:15 +09:00
root /work/public;
2021-12-01 10:47:59 +09:00
# Redirect to HTTPS
2021-12-12 14:40:31 +09:00
# return 301 https://$host$request_uri;
2021-12-01 10:47:59 +09:00
# SSL化
2021-12-12 14:40:31 +09:00
# ssl_certificate /etc/letsencrypt/live/kikikan.xyz/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/kikikan.xyz/privkey.pem;
2021-12-01 10:22:30 +09:00
2021-12-12 14:40:31 +09:00
# access_log /var/log/nginx/ssl-access.log;
# error_log /var/log/nginx/ssl-error.log;
2021-12-01 10:10:40 +09:00
2021-08-03 15:34:15 +09:00
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
index index.php;
charset utf-8;
client_max_body_size 0;
2021-08-03 15:34:15 +09:00
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php$ {
2021-12-01 10:10:40 +09:00
try_files $uri =404;
2021-08-03 15:34:15 +09:00
fastcgi_pass app:9000;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
2021-10-15 16:04:55 +09:00
}