Untitled

 avatar
unknown
plain_text
2 years ago
2.5 kB
1
Indexable
server {
  server_name rvs-stg.skrum.jp rvs-stg-console.skrum.jp;
  root /usr/share/nginx/html/current/public;

  add_header X-Frame-Options "SAMEORIGIN";
  add_header X-Content-Type-Options "nosniff";

  index index.php index.html;

  charset utf-8;
  client_max_body_size 100M;

  location / {
    try_files $uri $uri/ /index.php?$query_string;
  }

  location /users {
      root /usr/share/nginx/html/rvs_vuejs/dist;
      try_files $uri $uri/ /index.html?$query_string;
  }

  location = /favicon.ico { access_log off; log_not_found off; }
  location = /robots.txt  { access_log off; log_not_found off; }
  location = /health.html { access_log off; log_not_found off; }

  location = /.well-known/apple-app-site-association {
    default_type application/json;
    access_log off;
    log_not_found off;
    satisfy any;
    allow all;
  }

  location = /.well-known/assetlinks.json {
    default_type application/json;
    access_log off;
    log_not_found off;
    satisfy any;
    allow all;
  }

  error_page 404 /index.php;

  location ~ \.php$ {
    fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
    fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
    include fastcgi_params;
  }

  location ~ /\.(?!well-known).* {
    deny all;
  }

    listen [::]:443 ssl ipv6only=on; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/rvs-stg.skrum.jp/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/rvs-stg.skrum.jp/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
    if ($host = rvs-stg-console.skrum.jp) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = rvs-stg.skrum.jp) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


  listen 80;
  listen [::]:80;
  server_name rvs-stg.skrum.jp rvs-stg-console.skrum.jp;
    return 404; # managed by Certbot
}

server {
   server_name fgj-dev-22.tk www.fgj-dev-22.tk;
    root /usr/share/nginx/html/rvs-vuejs/dist;
    index index.html index.htm;

    location / {
        try_files $uri $uri/ /index.html;
    }

    error_log  /var/log/nginx/vue-app-error.log;
    access_log /var/log/nginx/vue-app-access.log;
}
Editor is loading...