Skip to content
Snippets Groups Projects
Commit 7e22ec4d authored by U-FAUAD\ro23bivi's avatar U-FAUAD\ro23bivi
Browse files

Change typescript strict configuration

parent cca58886
Branches
No related tags found
No related merge requests found
### STAGE 1: Build ###
FROM node:18-alpine AS build
WORKDIR /usr/src/app
COPY package.json ./
RUN npm install
COPY . .
#RUN npm run build
RUN npm install @angular/cli -g
RUN ng build
CMD ng serve --host 0.0.0.0 --port 4200
#RUN npm install --global pm2
#RUN pm2 start "ng serve"
### STAGE 2: Run with nginx ###
# FROM nginx:1.17.1-alpine
# COPY default.conf /etc/nginx/conf.d/default.conf
# COPY --from=build /usr/src/app/dist/faudok /usr/share/nginx/html
# EXPOSE 80
### STAGE 2: Run with Apache2 and HTTPS ###
# FROM httpd:2.4
# RUN a2enmod proxy
# RUN a2enmod proxy_http
# RUN a2enmod ssl
# RUN sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt
# COPY apache_https.conf /etc/apache2/sites-available/apache_https.conf
# RUN a2ensite apache_https
# RUN a2ensite apache_redirect_to_ssl.conf
# RUN systemctl restart apache2
# EXPOSE 443
### STAGE 2: Run with Apache2 and HTTPS ###
# FROM httpd:2.4
# RUN a2enmod proxy
# RUN a2enmod proxy_http
# COPY apache_http.conf /etc/apache2/sites-available/apache_http.conf
# RUN a2ensite apache_http
# RUN systemctl restart apache2
# EXPOSE 80
\ No newline at end of file
<VirtualHost *:80>
#preserve the host which made http request for proxy apps called to see
ProxyPreserveHost On
# mod_proxy_http for backend
ProxyPass /server http://localhost:8080/
ProxyPassReverse /server http://localhost:8080/
# mod_proxy to frontend
ProxyPass / http://localhost:4200/
ProxyPassReverse / http://localhost:4200/
</VirtualHost>
\ No newline at end of file
<VirtualHost *:443>
ServerAdmin stelica.valianos@fau.de
ServerName test-faudok.ub.fau.de
ServerAlias www.test-faudok.ub.fau.de test-faudok.ub.uni-erlangen.de
SSLEngine on
# with self-signed certificate
SSLCertificateFile /etc/ssl/localcerts/apache.pem
SSLCertificateKeyFile /etc/ssl/localcerts/apache.key
#preserve the host which made http request for proxy apps called to see
ProxyPreserveHost On
# disable Forward Proxy (apache2 get requests and proxy them in internet aka out server made the internet request)
ProxyRequests Off
#required to return https header behind proxy
RequestHeader set X-Forwarded-Proto https
# mod_proxy_http for backend
ProxyPass /server http://localhost:8080/
ProxyPassReverse /server http://localhost:8080/
# mod_proxy to frontend
ProxyPass / http://localhost:4200/
ProxyPassReverse / http://localhost:4200/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
\ No newline at end of file
<VirtualHost *:80>
ServerAdmin stelica.valianos@ub.fau.de
ServerName test-faudok.ub.fau.de
ServerAlias www.test-faudok.ub.fau.de test-faudok.ub.uni-erlangen.de
Redirect permanent / https://test-faudok.ub.fau.de
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
\ No newline at end of file
# Config of nginx server which is
server {
listen 80;
server_name scrum-ui;
root /usr/share/nginx/html;
index index.html index.html;
location /api/scrums {
proxy_pass http://scrum-app:8080/api/scrums;
}
location /api/tasks {
proxy_pass http://scrum-app:8080/api/tasks;
}
location / {
try_files $uri $uri/ /index.html;
}
}
\ No newline at end of file
......@@ -5,7 +5,7 @@
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true,
"strict": false,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment