Skip to content

Commit

Permalink
testing 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasscheman committed Sep 13, 2024
1 parent dca81aa commit 530ea74
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions openshift/vhost.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
server {
listen 8080;
server_name app.openshift.fss.uu.nl;

add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";

index index.php index.html;
root /var/www/public;

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location / {
try_files $uri /index.php?$args;
}

location / {

# URLs to attempt, including pretty ones.
try_files $uri $uri/ /index.php?q=$uri&$args;
}

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass sample-app:9000;
Expand Down
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dotenv.config() // load env vars from .env

// const host = `${process.env.VITE_API_URL ?? 'http://localhost:3000'}`;
// const port = `${process.env.VITE_PORT ?? '3000'}`;
console.log('Start vite!!!')
// console.log(`Vite server running on ${host}:${port}`);
export default defineConfig({
plugins: [
Expand Down

0 comments on commit 530ea74

Please sign in to comment.