Skip to content

Commit

Permalink
update front port
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonDumestre committed Feb 7, 2024
1 parent e72943c commit 9b8e9e9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion TP3/ansible/playbook-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
- role: launch-database
- role: launch-app
- role: launch-front
#- role: launch-proxy
- role: launch-proxy
2 changes: 1 addition & 1 deletion TP3/ansible/roles/launch-front/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- name: Launch app
- name: Launch front
docker_container:
name: front
image: "leondumestre/tp-devops-front:1.0"
Expand Down
2 changes: 1 addition & 1 deletion TP3/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
front:
image: "leondumestre/tp-devops-front:1.0"
ports:
- "8000:80"
- "8000:8000"
networks:
- "app-network"
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion TP3/front/default.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server {
listen 80;
listen 8000;
server_name localhost;

#charset koi8-r;
Expand Down
5 changes: 5 additions & 0 deletions TP3/front/vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
devServer: {
port: 8000,
},
}
4 changes: 2 additions & 2 deletions TP3/proxy/httpd-reverse-proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ LoadModule proxy_http_module modules/mod_proxy_http.so

<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://front:80/
ProxyPassReverse / http://front:80/
ProxyPass / http://front:8000/
ProxyPassReverse / http://front:8000/
</VirtualHost>
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

0 comments on commit 9b8e9e9

Please sign in to comment.