default.confを修正

このコミットが含まれているのは:
Kan Nakazawa 2021-12-13 21:53:20 +09:00
コミット 2b1a321443
1個のファイルの変更54行の追加12行の削除

ファイルの表示

@ -1,19 +1,10 @@
### 開発環境用 ###
server {
listen 80;
listen 443 ssl;
server_name kikikan.xyz;
root /work/public;
# Redirect to HTTPS
return 301 https://$host$request_uri;
# SSL化
ssl_certificate /etc/letsencrypt/live/kikikan.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/kikikan.xyz/privkey.pem;
access_log /var/log/nginx/ssl-access.log;
error_log /var/log/nginx/ssl-error.log;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
@ -42,4 +33,55 @@ server {
location ~ /\.(?!well-known).* {
deny all;
}
}
}
### 本番環境用 ###
# server {
# listen 80;
# server_name kikikan.xyz;
# # Redirect to HTTPS
# return 301 https://$host$request_uri;
# }
# server {
# listen 443 ssl;
# server_name kikikan.xyz;
# root /work/public;
# # SSL化
# ssl_certificate /etc/letsencrypt/live/kikikan.xyz/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/kikikan.xyz/privkey.pem;
# access_log /var/log/nginx/ssl-access.log;
# error_log /var/log/nginx/ssl-error.log;
# 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;
# 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$ {
# try_files $uri =404;
# fastcgi_pass app:9000;
# fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
# include fastcgi_params;
# }
# location ~ /\.(?!well-known).* {
# deny all;
# }
# }